mirror of https://github.com/string1995/eee102.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
444 B
19 lines
444 B
#ifndef POINT_H |
|
#define POINT_H |
|
|
|
class Point |
|
{ |
|
public: |
|
Point(){} |
|
Point(const int x, const int y) : x(x), y(y) {} |
|
void Print(); |
|
void PrintCircular(); |
|
void Clear(); |
|
void ChangePosition(const int x, const int y); |
|
bool operator== (const Point& point) { return (point.x == this->x) && (point.y == this->y); } |
|
int GetX(){ return this->x; } |
|
int GetY(){ return this->y; } |
|
private: |
|
int x, y; |
|
}; |
|
#endif // POINT_H
|
|
|