#include <stdio.h> #ifndef _POINT_H #define _POINT_H class Point { public: Point(float x = 0, float y = 0) { mX = x; mY = y; } ~Point() { } float GetX() { return mX; } float GetY() { return mY; } void SetX(float x) { mX = x; } void SetY(float y) { mY = y; } void Print() { printf("(%f,%f)", mX, mY); } private: float mX; float mY; }; #endif // _POINT_H