// File: intstack.h // // Derive a integer stack from the generic stack class #ifndef _intstack_h #define _intstack_h #include "genstack.h" class IntStack : public GenStack { // public derivation of GenStack class public: IntStack() ; // constructor ~IntStack() ; // destructor // overide GenStack operations // void push(int) ; // add an int to top of stack int pop() ; // remove & return int from top of stack int top() ; // return (don't remove) int from top of stack private: static int cmp (void *, void *) ; // int comparison static void prt (void *) ; // print an int } ; #endif