#include #include "Point.h" using namespace std; int main() { Point p1(1, 2); cout << p1 << endl; // (1,2) Point p2(3,4); cout << p1 + p2 << endl; // (4,6) cout << p1 + 10 << endl; // (11,12) cout << 20 + p1 << endl; // (21,22) cout << 10 + p1 + 20 + p1 << endl; // (32,34) p1 += p2; cout << p1 << endl; // (4,6) p1 += 3; cout << p1 << endl; // (7,9) Point p3; // (0,0) cout << p3++ << endl; // (0,0) cout << p3 << endl; // (1,1) cout << ++p3 << endl; // (2,2) }