Create a simple student management program in c++ programming language

#include<conio.h>
#include<iostream.h>
class driver
{
double stu_no,age;
char name[15],*add;
public:
driver();
~driver();
void getdata();
void putdata();
};
driver::driver()
{
stu_no=0;
age=0;
}
driver::~driver()
{
}
void driver::getdata()
{
cout<<"\n\tEnter Student Roll No  :-\t";cin>>stu_no;
cout<<"\n\tEnter Student Name     :-\t";cin>>name;
cout<<"\n\tEnter Student Age      :-\t";cin>>age;
cout<<"\n\tEnter Student Address  :-\t";cin>>add;
}
void driver::putdata()
{
cout<<"\n\tStudent Roll No  :-\t"<<stu_no;
cout<<"\n\tStudent Name     :-\t"<<name;
cout<<"\n\tStudent Age      :-\t"<<age;
cout<<"\n\tStudent Address  :-\t"<<add;
}
void main()
{
    textcolor(111);
    clrscr();
    driver p;
    p.getdata();
    p.putdata();
    getch();
}
Create a simple student management program in c++ programming language Create a simple student management program in c++ programming language Reviewed by Unknown on 6:12:00 PM Rating: 5

No comments:

Powered by Blogger.