Documentos de Académico
Documentos de Profesional
Documentos de Cultura
3rd Semester
3rd Semester
#define _STACK_TEMPLATE
template <class BaseType>class Stack{
public:
Stack();
~Stack();
bool is_empty() const;
bool is_full() const;
bool push (const BaseType &value);
bool pop (BaseType &value);
bool pop ();
BaseType top() const;
private:
static const int MAX_SIZE = 10000;
int top_index;
BaseType stack[MAX_SIZE];
};