aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacobdw22 <[email protected]>2022-10-05 16:35:39 -0700
committerjacobdw22 <[email protected]>2022-10-05 16:35:39 -0700
commit78df629b0e153f13c23a5ab5fe4af89c5c298b2b (patch)
tree664089c72a0e04372875358c429d824ca41adb4b
parentsimple changes (diff)
downloadcst116-ch7-debugging-jacobdw22-78df629b0e153f13c23a5ab5fe4af89c5c298b2b.tar.xz
cst116-ch7-debugging-jacobdw22-78df629b0e153f13c23a5ab5fe4af89c5c298b2b.zip
simple changes
-rw-r--r--CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp
index 174e44d..b761c68 100644
--- a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp
+++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp
@@ -42,6 +42,7 @@
* 4) Re-run the program this time with debugging and run to
* Breakpoint 2.
* 5) Why is the action with the else executing?
+* It is not in the else statement, it is just following it.
* 6) Fix the problem and re-run to verify the problem was corrected.
********************************************************************/
@@ -69,8 +70,8 @@ int main()
cout << "Senior" << endl;
// Breakpoint 2
// Put a breakpoint on the following line
- else;
- cout << "Adult" << endl;
+ else
+ cout << "Adult" << endl;
return 0;
} \ No newline at end of file