Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. .....
  2. ...
  3. ..
  4. void Stack::putSurname(employee& e)
  5. {
  6.  
  7. cout<<"Insert SURNAME"<< endl;
  8. cin >> e.surname;
  9. }
  10. ......
  11. ....
  12. ..
  13. void Stack::push(employee e)
  14. {
  15. pos++;
  16. employeeList[pos] = e;
  17.  
  18. }
  19. ......
  20. ....
  21. ..
  22.  
  23. .......
  24. .....
  25. ..
  26. struct employee
  27. {
  28.  
  29. string name, surname;
  30. int age;
  31.  
  32. };
  33.  
  34. class Stack
  35. {
  36.  
  37. public:
  38.  
  39. employee employeeList[1000];
  40.  
  41. int pos =-1;
  42.  
  43.  
  44. public:
  45.  
  46. bool isEmpty();
  47.  
  48. void push(employee e);
  49. ....
  50. ......
  51. ........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement