From 7a73162607544204032aa66cce755daf21edebda Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Tue, 24 May 2022 11:18:46 -0500 Subject: Graduate Signed-off-by: Matt Strapp --- OLD/ee1301/wk6/lab5/Bug.hpp | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 OLD/ee1301/wk6/lab5/Bug.hpp (limited to 'OLD/ee1301/wk6/lab5/Bug.hpp') diff --git a/OLD/ee1301/wk6/lab5/Bug.hpp b/OLD/ee1301/wk6/lab5/Bug.hpp deleted file mode 100644 index cc704ab..0000000 --- a/OLD/ee1301/wk6/lab5/Bug.hpp +++ /dev/null @@ -1,28 +0,0 @@ -#include - -#ifndef BUG_H - -#define BUG_H -class Bug { -private: - int position, dir; -public: - Bug() { - position=0; - dir=1; - } - Bug(int pos) { - position=pos; - dir=1; - } - void move() { - position+=dir; - } - void turn() { - dir*=-1; - } - void display() { - std::cout << "position = " << position << ", direction = " << dir << std::endl; - } -}; -#endif -- cgit v1.2.3