#ifndef STACK_H #define STACK_H #include"listcon.h" // definition of a Stack inherited from a ListContainer class Stack : public ListContainer { public: // these are all pure virtual from ListContainer void Name( void ) { cout << endl << "STACK" << endl; } void Insert( int foo ) { InsertFront( foo ); } int Delete( void ) { return DeleteFirst(); } void Delete( int foo ) { DeleteOrder( foo ); cout << "violated Stack" << endl; } }; #endif