// File: bstrstack.h // // Derive a BString stack from the GenStack class #ifndef _bstrstack_h #define _bstrstack_h #include "bstring2.h" #include "genstack.h" class BStringStack : public GenStack { // public derivation of GenStack class public: BStringStack() ; // constructor ~BStringStack() ; // destructor // overide GenStack operations // void push(const BString&) ; // add a string to the top of stack BString pop() ; // return and delete from top of stack BString top() ; // return string at the top of stack private: static int cmp (void *, void *) ; // string comparison static void prt (void *) ; // print a string } ; #endif