diff options
| author | RossTheRoss <msattr@gmail.com> | 2020-02-09 08:46:52 -0600 |
|---|---|---|
| committer | RossTheRoss <msattr@gmail.com> | 2020-02-09 08:46:52 -0600 |
| commit | bd1d350c376b45e334697851e29b2f79fee0c956 (patch) | |
| tree | eb242032a64442caef7a35434400eb0818911e9a /ee1301/wk6/lab5/Bug.hpp | |
| parent | Do micro prelab (diff) | |
| parent | Rename file (diff) | |
| download | homework-bd1d350c376b45e334697851e29b2f79fee0c956.tar homework-bd1d350c376b45e334697851e29b2f79fee0c956.tar.gz homework-bd1d350c376b45e334697851e29b2f79fee0c956.tar.bz2 homework-bd1d350c376b45e334697851e29b2f79fee0c956.tar.lz homework-bd1d350c376b45e334697851e29b2f79fee0c956.tar.xz homework-bd1d350c376b45e334697851e29b2f79fee0c956.tar.zst homework-bd1d350c376b45e334697851e29b2f79fee0c956.zip | |
Merge branch 'master' of github.com:RosstheRoss/TestingFun
Diffstat (limited to 'ee1301/wk6/lab5/Bug.hpp')
| -rw-r--r-- | ee1301/wk6/lab5/Bug.hpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/ee1301/wk6/lab5/Bug.hpp b/ee1301/wk6/lab5/Bug.hpp deleted file mode 100644 index cc704ab..0000000 --- a/ee1301/wk6/lab5/Bug.hpp +++ /dev/null @@ -1,28 +0,0 @@ -#include <iostream>
-
-#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
|
