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