home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH05 / A05114.TXT < prev    next >
Encoding:
Text File  |  1993-11-23  |  393 b   |  8 lines

  1. Suppose you are writing an educational program to teach children
  2. about arithmetic and fractions.  Unfortunately, computers do not
  3. support fractions.  One solution would be for you to define a
  4. class for fractions.  This class could store, operate on, and
  5. display the numerator and denominator of each number.  Numbers
  6. such as 1/2, -2/3, 10/4, and 1 3/5 are objects of the fraction
  7. type.
  8.