commit e5a11eabb1d8924e4dce661939bc772848de010d Author: Imbus <> Date: Thu Apr 11 23:11:56 2024 +0200 Initial diff --git a/src/point.cpp b/src/point.cpp new file mode 100644 index 0000000..f1da4f9 --- /dev/null +++ b/src/point.cpp @@ -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; + } +}; +