aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
diff options
context:
space:
mode:
authorMorgan Cyrus <[email protected]>2022-10-12 21:18:49 -0700
committerMorgan Cyrus <[email protected]>2022-10-12 21:18:49 -0700
commitba21db36f5d1af6a8691aa9ad9de414ce298ebd3 (patch)
tree7cd78394211698288b3e947a46f9b96e0f070d9d /CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
parentExercise 2 completed. (diff)
downloadcst116-chapter8-cyrus-ba21db36f5d1af6a8691aa9ad9de414ce298ebd3.tar.xz
cst116-chapter8-cyrus-ba21db36f5d1af6a8691aa9ad9de414ce298ebd3.zip
Completed exercise 3
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