#ifndef STACK_VE_H #define STACK_VE_H #include "stack.h" class StackVE : public Stack { friend class StackVEIterator; private: // Private data int topIndex_; int* data_; int size_; public: // Construtor StackVE(int size=2); // Destrutor virtual ~StackVE(); // Stack Methods bool isEmpty() { return (topIndex_< 0); } bool isFull() { return (topIndex_== size_-1); } void push(int n); int pop(); int top(); // Iterator methods StackIterator *iterator(); }; #endif