home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH09 / A093925.TXT < prev    next >
Encoding:
Text File  |  1993-10-20  |  348 b   |  7 lines

  1. Since operator-() is not a member of the Fraction class, ordinary
  2. argument conversion can be applied to either of the arguments.
  3. Here the floating point value 0.5 is converted to a Fraction
  4. object and passed as the second argument of the function.
  5. Here, the statement "0.5 - y" would also work, but of course
  6. it would have a different value.
  7.