#ifndef POINT_H #define POINT_H #include using namespace std; class point { public: point(int initX = 0, int initY = 0); // return a string representation of the point string to_string() const; // translate the coordinates by the given amount void translate(int dx, int dy); // return the distance from the origin of this point double distance_from_origin() const; // return the x coordinate of this point int getX() const; // return the y coordinate of this point int getY() const; // set the coordinates of this point void setLocation(int newX, int newY); private: int x, y; }; // overloaded insertion operator for output ostream & operator<<(ostream & out, const point & p); #endif