#ifndef POINT_H #define POINT_H #include //for class ostream using namespace std; class point { float x; float y; public: point(float init_x, float init_y): x {init_x}, y {init_y} {} float r() const; //distance from origin friend ostream& operator<<(ostream& ost, const point& p); friend bool operator==(const point& p1, const point& p2) { return p1.x == p2.x && p1.y == p2.y; } }; inline bool operator!=(const point& p1, const point& p2) {return !(p1 == p2);} #endif