#ifndef STACK_H #define STACK_H class Stack { private: // Private data int topIndex_; int* data_; int size_; public: // Construtor Stack(int size=2); // Public Methods bool isEmpty() { return (topIndex_< 0); } bool isFull() { return (topIndex_== size_-1); } void push(int n); int pop(); int top(); }; #endif