#include #include "stack.h" #include "arraystack.h" using namespace std; /* TO TEST: private: T* stack; int stackTop; int length; public: arrayStack(int initialCapacity = 10); virtual ~arrayStack() { delete[] stack; } virtual bool empty() const override { return stackTop == -1; } virtual int size() const override { return stackTop + 1; } virtual T& top() override; virtual void pop() override; virtual void push(const T& theElement) override; arrayStack& operator=(const arrayStack& x); arrayStack(const arrayStack& x); */ int main(){ arrayStack s(10); s.push('a'); s.show(); s.push('b'); s.show(); s.push('c'); s.show(); s.pop(); s.show(); return 0; } /* a a b a b c a b */