finished the bulk of game

This commit is contained in:
2024-07-14 21:32:41 -04:00
parent b3475b7530
commit af8bc4112c
110 changed files with 1876 additions and 1481 deletions

View File

@ -2,17 +2,19 @@
#define __FRACTION_H__
struct fraction final {
int numerator;
int denominator;
int numerator;
int denominator;
fraction operator+(const fraction &frac);
fraction operator*(const fraction &frac);
fraction &operator*=(const fraction &frac);
fraction &operator=(const fraction &frac);
bool operator==(const fraction &frac);
bool operator!=(const fraction &frac);
fraction &simplify();
float real() const;
private:
int gcd(int a, int b);
int gcd(int a, int b);
};
#endif