aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorgan Cyrus <[email protected]>2022-10-12 20:37:56 -0700
committerMorgan Cyrus <[email protected]>2022-10-12 20:37:56 -0700
commitcac0c22d9dd7b7ab9d503446071c2080d0d9ac74 (patch)
tree27cf13ec5ce1e7b0fa0cc703b259ac7c023405e8
parentAdded {} brackets to all of the statements. (diff)
downloadcst116-ch7-cyrus-cac0c22d9dd7b7ab9d503446071c2080d0d9ac74.tar.xz
cst116-ch7-cyrus-cac0c22d9dd7b7ab9d503446071c2080d0d9ac74.zip
All brackets added and else statement working
-rw-r--r--CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp
index fd649e1..5c3ee87 100644
--- a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp
+++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp
@@ -78,8 +78,14 @@
*
* 4) Re-run the program this time with debugging and run to
* Breakpoint 2.
+* done
+*
* 5) Why is the action with the else executing?
+* the {} brackets were left out.
+*
* 6) Fix the problem and re-run to verify the problem was corrected.
+* verified.
+*
********************************************************************/
#include <iostream>