You are on page 1of 1

EXP3_1 #include<iostream.h> #include<conio.

h> class emp { char name[10],des[10]; unsigned long int salary,id; public: void accept() { cout<<"Employee Name:\t"; cin>>name; cout<<"Employee Id:\t"; cin>>id; cout<<"Employee Salary:\t"; cin>>salary; cout<<"Employee Designation:\t"; cin>>des; } void display() { cout<<"\nEmployee Name:\t"<<name; cout<<"\nEmployee Id:\t"<<id; cout<<"\nEmployee Salary:\t"<<salary; cout<<"\nEmployee Designation:\t"<<des; } }; void main() { clrscr(); emp e; e.accept(); e.display(); getch(); }

Page 1

Print to PDF without this message by purchasing novaPDF (http://www.novapdf.com/)