#ifndef POINTH #define POINTH #include using namespace std; class point { double x, y; public: point(double initial_x = 0.0, double initial_y = 0.0) { x = initial_x; y = initial_y; } void print() const {cout << "(" << x << ", " << y << ")";} double dist() const; double dist(const point& another) const; point midpoint(const point& another) const { return point((x + another.x) / 2, (y + another.y) / 2); } double area(const point& A, const point& B) const; }; #endif