aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheOtherTonyStark <[email protected]>2022-10-09 15:45:49 -0700
committerTheOtherTonyStark <[email protected]>2022-10-09 15:45:49 -0700
commit7524683054d818acc43634f5b172ed6e74a02293 (patch)
treecaedde83f3a99d8d2e542ae9074f89cc0d383999
parentInitial Commit (diff)
downloadcst116-chapter8-debugging-theothertonystark-7524683054d818acc43634f5b172ed6e74a02293.tar.xz
cst116-chapter8-debugging-theothertonystark-7524683054d818acc43634f5b172ed6e74a02293.zip
Second Commit
-rw-r--r--CST116-Ch8-Debugging/CST116-Ch8-Debugging-Chambers.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging-Chambers.cpp b/CST116-Ch8-Debugging/CST116-Ch8-Debugging-Chambers.cpp
index f7d77fb..55cab65 100644
--- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging-Chambers.cpp
+++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging-Chambers.cpp
@@ -14,6 +14,7 @@
* 6) Step over the cout statement.
* 7) Why didn't the flow of the program return back to the while
* statement?
+* It doesnot go back to the while statement because of the semicolon right after the end of that line
* 8) Fix this problem by removing the ; after the while statement.
* 9) Stop debugging and repeat Steps 2 � 5 to verify the correction
* worked.
@@ -62,7 +63,7 @@ int main()
// Breakpoint 1
// Put a breakpoint on the following line
- while (i < 0);
+ while (i < 0)
cout << i << endl;
// Breakpoint 2