// frac.cpp file set up with function STUBS, but without definitions filled // in yet. These count as function definition blocks, and this can be // used to test compile your STRUCTURAL setup before writing actual // algorithmic code. It's a good way to proceed! More about this // in the next lesson on compilation and debugging! #include #include "frac.h" using namespace std; /* int numerator; // no restrictions int denominator; // RULE: denominator != 0 must hold */ Fraction::Fraction() // set the fraction to 0/1 { } Fraction::Fraction(int n, int d) // init to n/d { } void Fraction::Show() const { } void Fraction::Input() { } void Fraction::SetValue(int n, int d) { } int Fraction::GetNumerator() const { return 0; } int Fraction::GetDenominator() const { return 0; } double Fraction::Evaluate() const { return 0; }