Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .....
- ...
- ..
- void Stack::putSurname(employee& e)
- {
- cout<<"Insert SURNAME"<< endl;
- cin >> e.surname;
- }
- ......
- ....
- ..
- void Stack::push(employee e)
- {
- pos++;
- employeeList[pos] = e;
- }
- ......
- ....
- ..
- .......
- .....
- ..
- struct employee
- {
- string name, surname;
- int age;
- };
- class Stack
- {
- public:
- employee employeeList[1000];
- int pos =-1;
- public:
- bool isEmpty();
- void push(employee e);
- ....
- ......
- ........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement