#include #include "node.h" #include "stack.h" #include "chainStack.h" using namespace std; /* TO TEST: private: Node* first; Node* last; int stackTop; public: chainStack() = delete; chainStack(Node* f = nullptr); chainStack(const chainStack& x); virtual bool empty() const; virtual int size() const; virtual T& top(); virtual void pop(); virtual void push(const T& theElement); virtual void show() const; ~chainStack() */ int main() { chainStack s(nullptr); s.push('a'); s.show(); s.push('b'); s.show(); s.push('z'); s.show(); s.pop(); s.show(); return 0; } /* a a b a b z a b */