Page 397 - C++
P. 397
}
char retpaid()
{
return paid;
}
}sf;
//********* FUNCTIONS MANAGING STUDENT INFO ****************
void add();
void del();
void modify();
//*********************************************************
//************ CLASS TO MANAGE STUDENT INFO ***************
//*********************************************************
class student
{
public:
char name[20],address[30],ph[30],fathername[30],mothername[30];
char sec;
int admno,cls;
void enter()
{
cout<<"\n\t\t Enter the admission number : ";
cin>>admno;
cout<<"\n\t\t Enter the Name : ";
gets(name);
cout<<"\n\t\t Enter Father\'s name : ";
gets(fathername);
cout<<"\n\t\t Enter Mother\'s name : ";
gets(mothername);
cout<<"\n\t\t Enter Addres : ";
gets(address);
cout<<"\n\t\t Enter Phone no : ";
gets(ph);
cout<<"\n\t\t Enter the Class : ";
cin>>cls;
cout<<"\n\t\t Enter the Section : ";
cin>>sec;
sec=toupper(sec);
}
void display()
{
cout<<"\n\t\t Admno is : ";
cout<<admno;
cout<<"\n\t\t Name is : ";
puts(name);
cout<<"\n\t\t Class is : "<<cls;