Write a C++ Program for maintaining employee database

#include
#include

class person
{
protected:
char name[20];
int code;
public:
void getdetail(void)
{
cout<<"\n\nEnter name :-"; cin>>name;
cout<<"Enter code :-"; cin>>code;
}
void dispdetail(void)
{
cout<<"\n\nNAME :-"<<<"\nCODE :-"<<<"\nEnter Pay amount :-"; cin>>pay;
}
void dispay(void)
{
cout<<"\nPAY :-"<<<"\nEnter Experience in yrs :-"; cin>>experience;
}
void dispexpr(void)
{
cout<<"\nEXPERIENCE:-"<<<"\n\n=====GETDATA IN=====\n"; getdetail(); getpay(); getexpr(); } void display(void) { cout<<"\n\n=====DISPLAY DETAILS=====\n"; dispdetail(); dispay(); dispexpr(); } void update(void) { cout<<"\n\n=====UPDATE DETAILS=====\n"; cout<<"\nChoose detail you want to update\n"; cout<<"1) NAME\n"; cout<<"2) CODE\n"; cout<<"3) EXPERIENCE\n"; cout<<"4) PAY\n"; cout<<"Enter your choice:-"; int choice; cin>>choice;
switch(choice)
{
case 1 : cout<<"\n\nEnter name : -"; cin>>name;
break;
case 2 : cout<<"\n\nEnter code :-"; cin>>code;
break;
case 3 : cout<<"\n\nEnter pay :-"; cin>>pay;
break;
case 4 : cout<<"\n\nEnter Expereince :-"; cin>>experience;
break;
default: cout<<"\n\nInvalid choice\n\n"; } } }; void main() { clrscr(); master ob1; int choice; while(1) { clrscr(); cout<<"\n=====MASTER DATABASE=====\n\n"; cout<<"\nChoose Operation you want to perform\n"; cout<<"1) Create Record\n"; cout<<"2) Display Record\n"; cout<<"3) Update Record\n"; cout<<"4) Exit\n"; cout<<"Enter your choice:-"; cin>>choice;
switch(choice)
{
case 1 : ob1.create();
break;
case 2 : ob1.display();
getch();
break;
case 3 : ob1.update();
break;
case 4 : goto out;
default : cout<<"\n\nInvalid Choice\nTry Again\n\n";
}
}
out:
}