#ifndef RATIONNEL_H
#define RATIONNEL_H
#include <iostream>

using namespace std;

class Rationnel
{
public:
    Rationnel(int num = 0, int den = 1);

    void simplifier();

    double operator()(int a, int b);

    friend Rationnel operator+(Rationnel & a, Rationnel & b);
    friend double operator*(Rationnel & a, double x);
    friend Rationnel & operator+=(Rationnel & a, Rationnel & b);
    friend ostream & operator<<(ostream & os, const Rationnel & r);

private :
    int _num;
    int _den;
};
#endif
