Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Coordinate
- {
- int Row, Column;
- };
- typedef Coordinate Stacktype;
- struct Node;
- typedef Node* Stackptr;
- struct Node
- {
- Stacktype Element;
- Stackptr Next;
- };
- class Stack
- {
- public:
- Stack();
- ~Stack();
- bool Empty();
- bool Push(Stacktype);
- bool Pop(Stacktype&);
- bool AvailableMove(Stacktype, char);
- private:
- Stackptr Top;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement