Get Information of Employees in Cplusplus

By | February 3, 2013
EmployeesQuestion:  Write a Program to Get Information of Employees in Cplusplus

Source Code:

#include
using namespace std;
struct employ
{
            int employ_no;
            char designation[50];
            int salary;
};
void main()
{
            employ em;
            cout<<”Enter the Employ No: \t”;
            cin>>em.employ_no;
            cout<<”Enter the Designation: \t”;
            cin>>em.designation;
            cout<<”Enter the Salary: \t”;
            cin>>em.salary;
            cout<<endl<<endl<<endl;
            cout<<em.employ_no<<endl;
            cout<<em.designation<<endl;
            cout<<em.salary<<endl;
}

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS