24 lines
324 B
C++
24 lines
324 B
C++
#ifndef ROBOT_HEADER
|
|
#define ROBOT_HEADER
|
|
|
|
#include <string>
|
|
using string = std::string;
|
|
|
|
class robot {
|
|
private:
|
|
const string _name;
|
|
int _north;
|
|
int _east;
|
|
int _steps;
|
|
public:
|
|
void move_north();
|
|
void move_east();
|
|
void move_south();
|
|
void move_west();
|
|
int north();
|
|
int east();
|
|
int travelled();
|
|
}
|
|
|
|
#endif
|