#include <iostream>
#include "Point.h"

using namespace std;

extern int main_exos1_2(void);

int main_exos1_2(void)
{
    Point a;        // contructeur de conversion ...
    Point b(4,5);
    Point c(b);

    cout << " a = " << a << endl;
    cout << " b = " << b << endl;
    cout << " c = " << c << endl;

    Point d(10,12);
    cout << " d = " << d << endl;
    d = b;
    cout << " b = " << b << endl;
    cout << " d = " << d << endl;

    Point e;
    cout << " e = " << e << endl;
    e = b + c;
    cout << " b = " << b << endl;
    cout << " c = " << c << endl;

    b += e;
    cout << " e = " << e << endl;
    cout << " b = " << b << endl;

    b = b + 7;
    cout << " b = " << b << endl;

    b  +=  e + 3; // 3 est converti en Point(3) <==> Point(3,0);
    cout << " e = " << e << endl;
    cout << " b = " << b << endl;

    return 0;
}
