1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
fb03ddb7ba . 2022-11-27 16:37:54 +00:00
c872144327 inital cw 2022-11-18 12:33:13 +00:00
2 changed files with 24 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:

22
robot.h Normal file
View File

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