Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __STACK_H
- #define __STACK_H
- using namespace std;
- class Stack {
- public:
- Stack(int size);
- void push(int elem);
- void pop();
- int peek();
- int getSize();
- int getQuantity();
- bool isEmpty();
- void makeEmpty();
- private:
- int m_size;
- int m_quantity = 0;
- int* m_list;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement