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 / 738.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  549KB  |  2550x3300
Labels: book | crt screen | reckoner
OCR: 738 Chapter Discovering C++ bool IsFuil) const; PRECOND ITION none POSTCONDITION: returns true if the stack full and false if q0u bool Push int elt // PRECONDITION: is to be pushed on the stack. POSTCONDI ITION returns true if elt at the top of the stack; returns false elt could not be pushed oo the stack bool Pop ( PRECONDITION: ouou POSTCONDITION: returns true if an element was removed from the stack; returns false if not bool Top( int &elt // PRECONDITION: none POSTCOND ITION returns false if the stack is empty ano elt is uncha anged; othe rwise, retu ns true and olt contains the integer that is on top of the stack. private: intList Since the intList object will be in the private section of the declaration of ass intStack an intst ack object cannot invoke the functions intLi Therefore c ...