1
0
This commit is contained in:
Captain ALM 2022-11-27 16:37:54 +00:00
parent c872144327
commit fb03ddb7ba

View File

@ -2,11 +2,10 @@
#define ROBOT_HEADER #define ROBOT_HEADER
#include <string> #include <string>
using string = std::string;
class robot { class robot {
private: private:
const string _name; const std::string _name;
int _north; int _north;
int _east; int _east;
int _steps; int _steps;
@ -15,9 +14,9 @@ public:
void move_east(); void move_east();
void move_south(); void move_south();
void move_west(); void move_west();
int north(); int const north();
int east(); int const east();
int travelled(); int const travelled();
} }
#endif #endif