diff options
| author | Morgan Cyrus <[email protected]> | 2022-10-12 21:18:49 -0700 |
|---|---|---|
| committer | Morgan Cyrus <[email protected]> | 2022-10-12 21:18:49 -0700 |
| commit | ba21db36f5d1af6a8691aa9ad9de414ce298ebd3 (patch) | |
| tree | 7cd78394211698288b3e947a46f9b96e0f070d9d /CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp | |
| parent | Exercise 2 completed. (diff) | |
| download | cst116-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.cpp | 6 |
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
|