//stack.h //header file for class Stack implemented using array #ifndef STACK_H #define STACK_H #define TOS 100 // Max elements in stack typedef int Type; // Allows easy change of element type class Stack { public: Stack(); void push(Type); Type pop(); int isempty(); void print(); private: int isfull(); int top; Type val[TOS]; }; #endif