Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Node
- {
- Node(Node* next = nullptr, int value = 0);
- Node(Node* const&);
- private:
- Node* next;
- int value;
- };
- struct Stack
- {
- Stack();
- Stack(Stack const&);
- ~Stack();
- void add(int value);
- Node* remove();
- int get_stack_size();
- private:
- Node* top;
- };
Advertisement
Add Comment
Please, Sign In to add comment