@brief Represents a rational number with numerator and denominator. */ class Rational { private: int numerator_; ///< Numerator of the rational number. int denominator_; ///< Denominator of the ...
friend ostream &operator<<(ostream &os, const Rational &rhs) {return os << rhs.numerator << "/" << rhs.denominator;} constexpr Rational(const long long num, const ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results