Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- int num;
- cout << "Enter the number of employees you wish to enter: ";
- cin >> num;
- employee lista[num];
- for(int i = 0;i < num;i++){
- employee empa;
- empa.vname();
- empa.position();
- empa.salary();
- empa.years();
- empa.address();
- empa.ajde();
- empa.notes();
- lista[i] = empa;
- }
- cout << "-----------------------------" << endl;
- for(int i = 0; i < num; ++i) {
- lista[i].print();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement