#include using namespace std; struct point { double x, y; point(double new_x = 0, double new_y = 0) { x = new_x; y = new_y; } point operator + (point p) { return point(x + p.x, y + p.y); } double operator * (point p) { return x * p.x + y * p.y; } friend istream &operator >> (istream &is, point &p) { return is >> p.x >> p.y; } friend ostream &operator << (ostream &os, point &p) { return os << p.x << " " << p.y; } }; int main() { point p; cin >> p; cout << "My point is " << p << endl; return 0; }