home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH05 / A051222.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-11-24  |  382.3 KB  |  1 channel  |  11,025 sample rate  |  35 seconds
Transcription: The data members of this class are two integers. The integer num represents the numerator of a fraction, and the integer denom represents the denominator. From this information you can deduce some, but not all, implementation details of the class. You cannot tell how the sign is stored, or if fraction has been reduced to its simplest form. For example, you cannot tell if minus four over six is stored as minus four over six 4 over minus 6, minus 2 over 3, or 2 over minus 3.