First page Back Continue Last page Graphics
intStack class definition
- class IntStack{
- public:
- IntStack ( int = 10 ); // default constructor
- ~IntStack ( ); // destructor
- bool push(const int &);
- bool pop( int & );
- bool isEmpty( ) const;
- bool isFull( ) const;
- private:
- int size;
- int top;
- int * stackPtr;
- };