Menu

Custom Search

C++ lab Program

......................................................
#include
#include
#include
struct student
{

char name[30];
int roll;
float marks[3];

void getdata();
void change();
void display();
};


void student::display()
{
cout<>name;
cout<<"Enter roll:"; cin>>roll;
cout<<"Enter marks of three subjects:"<>marks[0]>>marks[1]>>marks[2];
}
void main()
{
clrscr();
student s;
s.getdata();
s.change();
s.display();
getch();


}

No comments:

Post a Comment