class employee
{
public:
employee()
{
firstname[20]='\0';
lastname[20]='\0';
id='\0';
}
private:
char firstname[20];
char lastname[20];
int id;
};
//*************************************
int main()
{
employee em[n];
em[n].employee();
getch();
return 0;
}
//*************************************
employee::employee()
{
int i;
gotoxy(14,12);
cout<<"______First name______"<<"______Last name______"<<"______Id numbere______"<<endl;
for(i=0;i<n;i++)
{
gotoxy(20,row);
cin>>firstname;
gotoxy(32,row);
cin>>lastname;
gotoxy(44,row);
cout<<"ID:";
cin>>id;
row++;
}
}