123456789101112131415 |
- #include <iostream>
-
- using namespace std;
-
- class Rational {
- private:
- int num, den;
- public:
- Rational();
- Rational(int n, int d);
- void reduce();
- Rational sum(const Rational &b) const;
- bool gt(const Rational &b) const;
- void display() const;
- };
|