home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH05 / A05114.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-11-24  |  305.7 KB  |  1 channel  |  11,025 sample rate  |  28 seconds
Transcription: Suppose you are writing an educational program to teach children about arithmetic and fractions. Unfortunately, computers do not support fractions. One solution would be for you to define a class for fractions. This class could store, operate on, and define the numerator and denominator of each number. Numbers such as 1 over 2, minus 2 over 3, 10 over 4, and 1 and 3 over 5 are objects of the fraction type.