Advertisement
Guest User

Untitled

a guest
May 28th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. int main()
  2. {
  3.     int num;
  4.     cout << "Enter the number of employees you wish to enter: ";
  5.     cin >> num;
  6.     employee lista[num];
  7.     for(int i = 0;i < num;i++){
  8.         employee empa;
  9.         empa.vname();
  10.         empa.position();
  11.         empa.salary();
  12.         empa.years();
  13.         empa.address();
  14.         empa.ajde();
  15.         empa.notes();
  16.         lista[i] = empa;
  17.     }
  18.     cout << "-----------------------------" << endl;
  19.     for(int i = 0; i < num; ++i) {
  20.         lista[i].print();
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement