//--------------- FRAC.H --------------- class Fraction { public: Fraction(); // Set numerator = 0, denominator = 1. Fraction(int n, int d=1); // constructor with parameters // standard input/output routines void Input(); // input a fraction from keyboard. void Show(); // Display a fraction on screen // accessors int GetNumerator(); int GetDenominator(); // mutator bool SetValue(int n, int d); // set the fraction's value through parameters // other double Evaluate(); // Return the decimal value of a fraction bool Equals(Fraction f); // compare this fraction to f Fraction Add(Fraction f); // add this fraction and f, return result private: int numerator; // top part (any integer) int denominator; // denom must be non-zero };