1
0

inital cw

This commit is contained in:
Captain ALM 2022-11-18 12:33:13 +00:00
parent 1da7074bfc
commit c872144327
2 changed files with 25 additions and 2 deletions

View File

@ -1,6 +1,6 @@
build:
g++ -c main.cpp -o main.o
g++ -o t main.o
g++ -c *.cpp -o *.o
g++ -o t *.o
run: build
./t
edit:

23
robot.h Normal file
View File

@ -0,0 +1,23 @@
#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