//Header file for the point class. The convention for the instance // variables is that they end with a underscore. Procedures with // the name obtained by removing the underscore will be used to // get and set the values of these variables // class definition class Point { public: Point(); // constructor that takes no arguments int x(); // returns the x-coordinate void x(int); // sets the x-coordinate to the input value int y(); // returns the y-coordinate void y(int); // sets the y-coordianate to the input value float dist(Point); // returns distance to the input point float dist_origin(); // returns distance to the origin private: int x_; // internal rep is two integers, x_ for the int y_; // x-coord and y_ for the y-coord }; // prototypes for operators overloaded as non memebers bool operator> (Point &p, Point &q); // compares two points #include //overload << to print a point ostream& operator <<( ostream&, Point&);