Program to enter the detail of employee and display back on screen

#include
#include
struct emp
{
char name[15];
int eid;
float salary;
}
main()
{
struct emp a;
clrscr();

cout<>a.name;

cout<>a.eid;

cout<>a.salary;

cout<<"n Entered record was:";
cout<<"n nametttIDttsalary:";
cout<<"n "<<a.name<<"tt"<<a.eid<<"tt"<<a.salary;

getch();
}

Leave a reply