Pouknouki

Header de la classe ZFraction

Jul 4th, 2013
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.70 KB | None | 0 0
  1. #ifndef ZFRACTION_H_INCLUDED
  2. #define ZFRACTION_H_INCLUDED
  3.  
  4. class ZFraction {
  5.     private:
  6.         double numerateur;
  7.         double denominateur;
  8.     public:
  9.         ZFraction(double aNumerateur, double aDenominateur);
  10.         int PGCD(int a, int b);
  11.         void afficher() const;
  12.         bool estEgal(ZFraction const& autre);
  13.         ZFraction& operator+=(ZFraction const& autre);
  14.         ZFraction& operator*=(ZFraction const& autre);
  15.         bool operator==(ZFraction const& autre);
  16.         bool operator!=(ZFraction const& autre);
  17. };
  18. ZFraction operator+(ZFraction const& a, ZFraction const& b);
  19. ZFraction operator*(ZFraction const& a, ZFraction const& b);
  20.  
  21.  
  22. #endif // ZFRACTION_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment