Write a C++ Program for Educational Institution database
#include
#include
class staff
{
protected:
int code;
char name[20];
public:
void getstaff(void)
{
cout<<"\n\nEnter code :-"; cin>>code;
cout<<"Enter name :-"; cin>>name;
}
void dispstaff(void)
{
cout<<"\nNAME :-"<<<"Enter Subject :-"; cin>>sub;
cout<<"Enter Publication :-"; cin>>pub;
}
void display(void)
{
dispstaff();
cout<<"\nSUBJECT :-"<<<"\nPUBLICATION:-"<
}
void display(void)
{
dispstaff();
cout<<"\nGRADE :-"<
}
void disptypist(void)
{
dispstaff();
cout<<"\nSPEED :-"<
}
void display(void)
{
disptypist();
cout<<"\nDAILY WAGES:-"<
switch(choice)
{
case 1 : while(1)
{
clrscr();
cout<<"\n=====TEACHERS INFORMATION=====\n\n"; cout<<"\nChoose your choice\n"; cout<<"1) Create\n"; cout<<"2) Display\n"; cout<<"3) Jump to Main Menu\n"; cout<<"Enter your choice:-"; cin>>choice;
switch(choice)
{
case 1 : for(count=0,i=0;i<10;i++) cout=""><
if(test=='y' || test=='Y')
continue;
else
goto out1;
}
out1:
break;
case 2 : for(i=0;i
switch(choice)
{
case 1 : for(count=0,i=0;i<10;i++) cout=""><
if(test=='y' || test=='Y')
continue;
else
goto out2;
}
out2:
break;
case 2 : for(i=0;i
switch(choice)
{
case 1 : for(count=0,i=0;i<10;i++) cout=""><
if(test=='y' || test=='Y')
continue;
else
goto out3;
}
out3:
break;
case 2 : for(i=0;i
{
cout<
o1c[i].display();
cout<
}
getch();
break;
case 3 : goto start;
default: cout<<"\nInvalid choice\ntry again\n\n";
}
}
case 4 : goto end;
}
}
end:
}