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.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
index a1bcfe5..a12e0d8 100644
--- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
+++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
@@ -68,12 +68,16 @@
* Debugging Exercise 3
*
* 1) Run the program without debugging.
+* done
+*
* 2) What is happening now is an infinite loop.
* 3) End your program by holding down the Ctrl key and pressing C.
* 4) Fix the problem by adding a "++" after the i in the cout
* statement.
* 5) Run the program to Breakpoint 2 and verify that the output
* displayed on the screen is 0 � 9.
+* verified
+*
*/
/*
@@ -100,7 +104,7 @@ int main()
// Put a breakpoint on the following line
while (i < 10)
{
- cout << i << endl;
+ cout << i++ << endl;
}
// Breakpoint 2