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 / 698.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  551KB  |  2550x3300
Labels: book | crt screen | daybook | reckoner | sky
OCR: 698 Chapter Discovering C++ invItem: invItem( char *the id, int the num Note 3 new char[ strlen( the id strcpy id the num avail able num, invItem ~invItem) Note 4 delete[] id; bool invI Item: change eNum( int change amt num available change amt >=0 num available change amt return true; return false; bool invI tem :changeId char *newId Note 5 char new char[ strlen( newId strcpy tmp newId delete[ id tmp return true; void invItem: d splay cout "Id: Avail able num available endl; This file contains the implementation of the member functions of class inv Item that were not defined inside the class declaration. The tokens invItem in the header identifies each function as belonging to class nvI tem Note 1: The default constructor allocates memory for default id of copies the ### into that memory ...