Compare commits
No commits in common. "fb03ddb7ba64e419612a2b8a5df996fe25c32456" and "1da7074bfc981d4ee98f0dd2fba5621c6af7207f" have entirely different histories.
fb03ddb7ba
...
1da7074bfc
4
Makefile
4
Makefile
@ -1,6 +1,6 @@
|
||||
build:
|
||||
g++ -c *.cpp -o *.o
|
||||
g++ -o t *.o
|
||||
g++ -c main.cpp -o main.o
|
||||
g++ -o t main.o
|
||||
run: build
|
||||
./t
|
||||
edit:
|
||||
|
22
robot.h
22
robot.h
@ -1,22 +0,0 @@
|
||||
#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
|
Loading…
Reference in New Issue
Block a user