From e5a11eabb1d8924e4dce661939bc772848de010d Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 11 Apr 2024 23:11:56 +0200 Subject: [PATCH] Initial --- src/point.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/point.cpp 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; + } +}; +