aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp')
-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