From fb03ddb7ba64e419612a2b8a5df996fe25c32456 Mon Sep 17 00:00:00 2001 From: Captain ALM Date: Sun, 27 Nov 2022 16:37:54 +0000 Subject: [PATCH] . --- robot.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/robot.h b/robot.h index c540dc2..facf5af 100644 --- a/robot.h +++ b/robot.h @@ -2,11 +2,10 @@ #define ROBOT_HEADER #include -using string = std::string; class robot { private: - const string _name; + const std::string _name; int _north; int _east; int _steps; @@ -15,9 +14,9 @@ public: void move_east(); void move_south(); void move_west(); - int north(); - int east(); - int travelled(); + int const north(); + int const east(); + int const travelled(); } #endif