Source Code : Program On EMP

//………Program On EMP.Cpp…………….//

#include

//using namespace std;

class employee

{

  int ph_no;

  int id_no;

  char name[30];

  char emp_des[30];

  char emp_add[30];

  public:

  void getdata();

  void putdata();

};

void employee::getdata()

{

  cout<<"Enter the name:"<

  cin>>name;

  cout<<"Enter the phone number:"<

  cin>>ph_no;

  cout<<"Enter the identity number:"<

  cin>>id_no;

  cout<<"Enter the employee designation:"<

  cin>>emp_des;

  cout<<"Enter address of employee:"<

  cin>>emp_add;

}

void employee::putdata()

{

  cout<<"The name is:"<

  cout<<"The phone number is:"<

  cout<<"The identity number is:"<

  cout<<"The designation of employee:"<

  cout<<"The address of employee is:"<

}

int main()

{

  employee e1;

  e1.getdata();

  e1.putdata();

  return(0);

}