#include #include "Point.h" using namespace std; int main(void) { Point p1, p2(2,3); cout << "p1 = " << p1 << endl; cout << "p2 = " << p2 << endl; cout << "p1 + p2 = " << p1 + p2 << endl; cout << "p1 + 2 = " << p1 + 2 << endl; // ≡ p1 + Point(2,0) //cout << "2 + p1 = " << 2 + p1 << endl; // erreur : + est fonction membre cout << "p2() = " << p2() << endl; return 0; }