Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef __STACK_H
- #include<iostream>
- const int NUM = 100;
- class stack {
- int top;
- int arr[NUM];
- public:
- stack();
- void push(int);
- void pop();
- void resize();
- void Print();
- void setTop(int top);
- int getTop() const;
- int checkTop() const;
- bool empty() const;
- };
- #endif // !__STACK_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement