aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
diff options
context:
space:
mode:
authorTrevor Bouchillon <[email protected]>2022-10-10 16:36:50 -0700
committerTrevor Bouchillon <[email protected]>2022-10-10 16:36:50 -0700
commit41b0292eae5067050f8c824c0cd07662b4b740b5 (patch)
treef734b19bd845bf12e4fd3d696b90e7fd0998aab1 /CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
parentForgot to add name. Name added (diff)
downloadcst116-chapter8-debugging-daboochillin-41b0292eae5067050f8c824c0cd07662b4b740b5.tar.xz
cst116-chapter8-debugging-daboochillin-41b0292eae5067050f8c824c0cd07662b4b740b5.zip
Count is broken.
Diffstat (limited to 'CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp')
-rw-r--r--CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
index f424b4e..e64c52e 100644
--- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
+++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
@@ -60,7 +60,13 @@
* 3) Verify that the contents of count is garbage.
* 4) Step into the loop.
* 5) What is the value stored in count now?
+* **********************************************************************************
+* 10
+* **********************************************************************************
* 6) Where was 10 assigned to count?
+* **********************************************************************************
+* It was assigned to count because the count++ comes after the is count less than 10 statement.
+* **********************************************************************************
* 7) Fix the problem and re-run to verify.
********************************************************************/
#include <iostream>