C++ Program Using Structure
A structure can be said as, the collection of datas under a single name.
This program is designed to read and display name, roll no, address and weight of a student by using structure.
Char name ;
Char address ;
Void main ()
Cout<<”\n enter the roll no”;
Cout<<”\n enter name”;
Cout<<”\n enter address”;
Cout<<”\n ether weight”;
Cout<<”\n the student details are:”;
Cout<<”\n Name :”<< stu.name;
Cout<<”\n Roll no”<<stu.roll;
- Array of structure Array of structure It is well known that array is...
- Structure in C++ Structure in C++ Structure is a collection of simple variables...
- C++ Program Using Constructor and Destructor This is an object oriented programming in c++ to create...
- Array of class objects Array of class objects and single inheritance A program consisting...
- Array Of Class Object Array of class objects Array is a collection of similar...