home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH11 / A11193.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-10-22  |  327.1 KB  |  1 channel  |  11,025 sample rate  |  30 seconds
Transcription: This is the part of the fraction class definition that declares the input and output operators to be friends of the fraction class. The operators are declared as friends rather than member functions so that they have the same syntax as the operators for building types. If they were declared as member functions, they would have to take an object of the class as their first operand. As friends, they can be defined to take an IStream object or an OStream object as their That's their first argument.