Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. struct Coordinate
  2. {
  3.     int Row, Column;
  4. };
  5.  
  6. typedef Coordinate Stacktype;
  7.  
  8. struct Node;
  9.  
  10. typedef Node* Stackptr;
  11.  
  12. struct Node
  13. {
  14.     Stacktype Element;
  15.     Stackptr Next;
  16. };
  17.  
  18. class Stack
  19. {
  20.  
  21. public:
  22.     Stack();
  23.     ~Stack();
  24.     bool Empty();
  25.     bool Push(Stacktype);
  26.     bool Pop(Stacktype&);
  27.     bool AvailableMove(Stacktype, char);
  28.  
  29. private:
  30.     Stackptr Top;
  31. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement