home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_12 / 711.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  545KB  |  2550x3300
Labels: book | crt screen | poster | reckoner
OCR: C++ and OOP Polymorphism 711 12.4 Note 2 Example 12-14: tstfract cpp fractst cPP Synopsis Instant tiates and displays three Fracti .on and ects. Then the results of the Fract .on unary Fract ion addit ion are calculated and displ layed Objecti ve To demons strate the Fraction class and the overloading of operators for Note 3 Fracti ion qo ect Include Files incl Lude <iostream. h> #incl lude fract ion h" ded opera- int main) ibers values to the to Fraction f1(4, 5, f24, Fraction member cout endl endl Note 1 cout ens cout endl his Note cout endl ode on Note 3 tor. endl cout return en nd ing Running the Program aSE nto 0/1 / -8/15 verloaded iates objects displayed demonstrate cperators object