aboutsummaryrefslogtreecommitdiffstats
path: root/OLD/ee1301/wk6/lab5/Bug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'OLD/ee1301/wk6/lab5/Bug.cpp')
-rw-r--r--OLD/ee1301/wk6/lab5/Bug.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/OLD/ee1301/wk6/lab5/Bug.cpp b/OLD/ee1301/wk6/lab5/Bug.cpp
new file mode 100644
index 0000000..b4ef154
--- /dev/null
+++ b/OLD/ee1301/wk6/lab5/Bug.cpp
@@ -0,0 +1,12 @@
+#include "Bug.hpp"
+
+int main() {
+ Bug buggy(10);
+ buggy.display();
+ buggy.move();
+ buggy.display();
+ buggy.turn();
+ buggy.display();
+ buggy.move();
+ buggy.display();
+}