home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH10 / A10224.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-10-22  |  317.2 KB  |  1 channel  |  11,025 sample rate  |  29 seconds
Transcription: To reduce a fraction object to its simplest form, the numerator and denominator are divided by their greatest common divisor. The private member function GCD takes two arguments and returns their greatest common divisor. For example, if num has the value 6 and denom has the value 8, GCD returns the value 2. Both num and denom are divided by 2. The resulting value 3 over 4 is the value that is stored for the fraction object. Alright.