Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef ZFRACTION_H_INCLUDED
- #define ZFRACTION_H_INCLUDED
- class ZFraction {
- private:
- double numerateur;
- double denominateur;
- public:
- ZFraction(double aNumerateur, double aDenominateur);
- int PGCD(int a, int b);
- void afficher() const;
- bool estEgal(ZFraction const& autre);
- ZFraction& operator+=(ZFraction const& autre);
- ZFraction& operator*=(ZFraction const& autre);
- bool operator==(ZFraction const& autre);
- bool operator!=(ZFraction const& autre);
- };
- ZFraction operator+(ZFraction const& a, ZFraction const& b);
- ZFraction operator*(ZFraction const& a, ZFraction const& b);
- #endif // ZFRACTION_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment