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 / 714.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  490KB  |  2550x3300
Labels: book | crt screen | poster | reckoner | sky
OCR: 714 Chapter Discovering C++ Example 12-15 array.h array .h Contains the declarati .on and impl ementation TO temp late array Incl lude Files inc. lude <stdlib h> templ ate< class T int Note class Array public: Array) TION none POSTCONDITION: the has been initialized with all bits set to Array( const Array<T, n>& Note 2 // PRECONDITION: none POSTCONDITION the newly created array is copy of bool operator Array<T, n>& const; Note 2 PRECONDITION: none POSTCONDI TION Retur rns true if the two arrays have ident: cal elements and false, if not T6 operator(j int index PRECONDITION index mst be greater than or equal to and les than POSTCONDITION: The element pos .on index the array returned private: elts[ nl identical