.
This commit is contained in:
parent
c872144327
commit
fb03ddb7ba
9
robot.h
9
robot.h
@ -2,11 +2,10 @@
|
||||
#define ROBOT_HEADER
|
||||
|
||||
#include <string>
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user