diff options
| author | Wyatt <[email protected]> | 2022-09-29 14:28:51 -0700 |
|---|---|---|
| committer | Wyatt <[email protected]> | 2022-09-29 14:28:51 -0700 |
| commit | b6de4d194b5485ca99835e0b7691eec63b0273e8 (patch) | |
| tree | 3453f292de24b7bcb0db076ddeb2d816271e2de9 /Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | |
| parent | stuffs (diff) | |
| download | cst116-lab0-debugging-johnson-b6de4d194b5485ca99835e0b7691eec63b0273e8.tar.xz cst116-lab0-debugging-johnson-b6de4d194b5485ca99835e0b7691eec63b0273e8.zip | |
Commit
Diffstat (limited to 'Ch 5 Debugging Project/Ch 5 Debugging Project.cpp')
| -rw-r--r-- | Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp index 7ea8962..0dcf564 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -83,5 +83,27 @@ int main() cout << "After your raise you have $";
cout << money << endl;
+
return 0;
-}
\ No newline at end of file +}
+
+class Wall
+{
+
+ int health;
+
+ Wall(int newhealth)
+ {
+ health = newhealth;
+ }
+
+ void damage(int damage)
+ {
+ health -= damage;
+ }
+
+ void combine(Wall other)
+ {
+
+ }
+};
\ No newline at end of file |