From 1ae7de71cf7a122b6852ef5e92f8a0d246377c6c Mon Sep 17 00:00:00 2001 From: Joe Traver Date: Tue, 11 Oct 2022 20:14:59 -0700 Subject: Final Fix --- CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'CST116-Ch8-Debugging') 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 -- cgit v1.2.3