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 / 718.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  661KB  |  2550x3300
Labels: book | crt screen | monitor | reckoner
OCR: 718 Chapter Discovering C++ Running the Program Not Equa Equa the This class file template contains for an function array, mai It in also that contains demonstrates template some of the function features named of pr int that can be used to print the contents of any object instantiated from the class template for an array Four objects are instantiated using the class template for an array Two are arrays of ints, and the other two are arrays 01 cha rs Both arrays are initialized and each pair of arrays are compared using the overl loaded operator. Note The file array.h that contains the definition of the class template Array must be included here. Note 2 The function print is designed to work with any object instantiated from the Array class template Therefore if is function template. The to ...