From ba21db36f5d1af6a8691aa9ad9de414ce298ebd3 Mon Sep 17 00:00:00 2001 From: Morgan Cyrus Date: Wed, 12 Oct 2022 21:18:49 -0700 Subject: Completed exercise 3 --- CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp') 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 -- cgit v1.2.3