Void Using Namespace Class Protected Char Char Char Int Char Public
Void Using Namespace Class Protected Char Char Char Int Char Public
Void Using Namespace Class Protected Char Char Char Int Char Public
#include<conio.h>
void Menu();
using namespace std;
class Person
{
protected:
char Name[30];
char ID[15];
char Gender;
int Age;
char Ph_No[15];
public:
Person()
{
Name[0]=NULL;
ID[0]=NULL;
Gender=NULL;
Age=0;
Ph_No[0]=NULL;
}
void pget()
{
cout<<"Enter Name : ";
cin>>Name;
cout<<"Enter ID : ";
cin>>ID;
cout<<"Enter Gender (M/F) : ";
cin>>Gender;
cout<<"Enter Age : ";
cin>>Age;
cout<<"Enter Phone # : ";
cin>>Ph_No;
}
void pdisplay()
{
cout<<"Name : "<<Name<<endl;
cout<<"ID : "<<ID<<endl;
cout<<"Gender : "<<Gender<<endl;
cout<<"Age : "<<Age<<endl;
cout<<"Phone # : "<<Ph_No<<endl;
}
};
class Student:public Person
{
char StudentName[10];
int Semester;
char Section;
float CGPA;
int Fee;
public:
Student()
{
StudentName[0]=NULL;
Semester=0;
CGPA=0.0;
Fee=0;
Section=NULL;
}
void getstudent()
{
break;
case '4':
system("pause");
break;
case '5':
system("pause");
break;
case '0':
system("pause");
default:
cout<<"Wrong Input.Please Input Again"<<endl;
}
}while(choice!='0');
}
void Menu()
{
cout<<"\t||Welcome To Administration||"<<endl;
cout<<" Press 1 to Enrollment"<<endl;
cout<<" Press 2 to Display All Records"<<endl;
cout<<" Press 3 to Search Record"<<endl;
cout<<" Press 4 to Update Record"<<endl;
cout<<" Press 5 to Delete Record"<<endl;
cout<<" Press 0 Exit"<<endl;