Initial
This commit is contained in:
commit
e5a11eabb1
1 changed files with 14 additions and 0 deletions
14
src/point.cpp
Normal file
14
src/point.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
class Point {
|
||||
int x, y;
|
||||
|
||||
Point(int x, int y) {
|
||||
this->x = x;
|
||||
this->y = y;
|
||||
}
|
||||
|
||||
void move(int dx, int dy) {
|
||||
this->x += dx;
|
||||
this->y += dy;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in a new issue