aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch8-Debugging
diff options
context:
space:
mode:
authorJoe Traver <[email protected]>2022-10-11 20:14:59 -0700
committerJoe Traver <[email protected]>2022-10-11 20:14:59 -0700
commit1ae7de71cf7a122b6852ef5e92f8a0d246377c6c (patch)
treebebc42fce76fc3e864638a6a0c7991e62f74dafc /CST116-Ch8-Debugging
parentCompleted exersise 3 (diff)
downloadcst116-chapter8-debugging-joetraver30-1ae7de71cf7a122b6852ef5e92f8a0d246377c6c.tar.xz
cst116-chapter8-debugging-joetraver30-1ae7de71cf7a122b6852ef5e92f8a0d246377c6c.zip
Final Fix
Diffstat (limited to 'CST116-Ch8-Debugging')
-rw-r--r--CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
index a1dd815..4ee6daf 100644
--- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
+++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
@@ -51,6 +51,9 @@
* 3) Verify that the contents of count is garbage.
* 4) Step into the loop.
* 5) What is the value stored in count now?
+*
+* -0-
+*
* 6) Where was 10 assigned to count?
* 7) Fix the problem and re-run to verify.
********************************************************************/
@@ -61,7 +64,7 @@ using std::endl;
int main()
{
int i = 0;
- int count;
+ int count = 0;
// Breakpoint 1
// Put a breakpoint on the following line