//------------------------------------------------------------------------ // main.CPP -- implementation of main () // //------------------------------------------------------------------------ #include #include "fraction.h" int main (int argc, char* argv[]) { Fraction f1; Fraction f2; f1.SetValue (1,3); f2.SetValue (2,3); Fraction f3 = f1.Add (f2); cout << "1/3 + 2/3 == " << f3.GetValue () << endl; getchar(); return 0; }