home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH09 / A091525.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-11-02  |  321.6 KB  |  1 channel  |  11,025 sample rate  |  29 seconds
Transcription: This line includes mixed-mode arithmetic in that a floating-point value 0.5 is subtracted from the fraction object y. The floating-point value is converted to a fraction using a constructor provided by the fraction class. It is the second argument of the overloaded minus operator. When a binary operator is implemented as a member function, only the second argument can be converted. The first argument must be a fraction object object.