#ifndef STACK_LE_H #define STACK_LE_H #include "stack.h" class StackLE : public Stack { private: // Private data struct elemPilha { elemPilha *next_; int value_; elemPilha(elemPilha *p, int v) { next_=p; value_=v; } }; elemPilha* top_; public: // Construtor StackLE(); // Destrutor virtual ~StackLE(); // Public Methods bool isEmpty() { return top_ == 0L; } bool isFull() { return false; } void push(int n); int pop(); int top(); }; #endif