home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_12 / 734.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  489KB  |  2550x3300
Labels: book | crt screen | reckoner | sky
OCR: 734 Chapter Discovering C++ Example 12-21: intstack.h intstack.h Contains the declarati ion of stack pri ivately derived from class intList Include Files #inc lude intlist. .h" class intStack: private intList Note public: intStack); PRECONDITI NO none POSTCONDI ITION: an empty stack created intst ack() PRECONDI TION nuou POSTCONDITION: the stack is dest royed bool IsEmpty) const, Note2 PRECONDIT NOI none POSTCONDITION: retu rns true if the stack empty and false not bool PRECONDITI IsFull () ION: const, none Note POSTCONDITION: returns true if the stack full and false not. bool Push int el Note 3 PRECOND ITION: to be pushed on the stack. POSTCONDIT ION returns true was pushed onto the top of the stack; returns false 1+ cou lc 2ou be pushed on the st ack bool Pop ( Note 4 // PRECONDITI ION n ...