1
0
LearningCPP/robot.h

23 lines
319 B
C
Raw Normal View History

2022-11-18 12:33:13 +00:00
#ifndef ROBOT_HEADER
#define ROBOT_HEADER
#include <string>
class robot {
private:
2022-11-27 16:37:54 +00:00
const std::string _name;
2022-11-18 12:33:13 +00:00
int _north;
int _east;
int _steps;
public:
void move_north();
void move_east();
void move_south();
void move_west();
2022-11-27 16:37:54 +00:00
int const north();
int const east();
int const travelled();
2022-11-18 12:33:13 +00:00
}
#endif