I made code below to check the output.
ostringstream oss; Fraction f12{1, 2}; oss << "fraction f12 is " << f12 << \'\\n\';