Advertisement
arsovski

Untitled

Mar 25th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #ifdef __STACK_H
  2. #include<iostream>
  3. const int NUM = 100;
  4. class stack {
  5. int top;
  6. int arr[NUM];
  7. public:
  8. stack();
  9. void push(int);
  10. void pop();
  11. void resize();
  12. void Print();
  13. void setTop(int top);
  14. int getTop() const;
  15. int checkTop() const;
  16. bool empty() const;
  17. };
  18. #endif // !__STACK_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement