Quote:

The amount of happiness that you have depends on the amount of freedom you have in your heart

Sunday 15 April 2012

Defining a structure in C++

Defining a Structure and declaring its variables in C++:

Example: Initializing a Vehicle Structure.

struct vehicle {
                            char vehicle-type [];
                            char maker        [];
                            char engine-no [];
                            char registration-no [];
                            unsigned int vehicle-price [];
                            int year-of-manufacture [];
}vahicle v1, v2, v3;


1 comment:

  1. Thanks for updating about new updates


    I will share these Awesome content to my official blog

    New Jobs In Pakistan

    ReplyDelete

“You can't change the past, but you can ruin the present by worrying about the future”