Jommiey

Dojo1_1

Nov 15th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. struct Node
  2. {
  3.   Node(Node* next = nullptr, int value = 0);
  4.  
  5.   Node(Node* const&);
  6.  
  7. private:
  8.   Node* next;
  9.   int value;
  10. };
  11.  
  12. struct Stack
  13. {
  14.   Stack();
  15.  
  16.   Stack(Stack const&);
  17.  
  18.   ~Stack();
  19.  
  20.   void add(int value);
  21.  
  22.   Node* remove();
  23.  
  24.   int get_stack_size();
  25.  
  26. private:
  27.   Node* top;
  28. };
Advertisement
Add Comment
Please, Sign In to add comment