auto-update(nvim): 2025-01-24 13:08:42
This commit is contained in:
parent
3e99bb5443
commit
8ee64c7e1e
1 changed files with 1 additions and 3 deletions
|
@ -7,6 +7,7 @@ class Rational {
|
|||
private:
|
||||
int numerator;
|
||||
int denominator;
|
||||
int gcd(int, int) const;
|
||||
|
||||
public:
|
||||
Rational(int numerator = 0, int denominator = 1);
|
||||
|
@ -16,9 +17,6 @@ public:
|
|||
Rational divide(const Rational &) const;
|
||||
void simplify();
|
||||
void display() const;
|
||||
|
||||
private:
|
||||
int gcd(int, int) const;
|
||||
};
|
||||
|
||||
// Implement Rational class member functions here
|
||||
|
|
Loading…
Reference in a new issue