#ifndef XYPOINT #define XYPOINT #include using namespace std; class XYPoint { public: XYPoint(void); XYPoint(double x, double y); double x(void) const { return _x; } double y(void) const { return _y; } int num(void) const { return _num; } void setX(double x) { _x = x; } void setY(double y) { _y = y; } double distance(const XYPoint *other) const; bool isLeftOf(const XYPoint *other) const; bool isBelow(const XYPoint *other) const; private: double _x; double _y; int _num; }; // functions to print points ostream& operator <<(ostream&, const XYPoint &); // given a point ostream& operator <<(ostream&, const XYPoint *); // given a ref to a point #endif