From 710a84e362d0cc57b1b1417cf87f59f1671c8c20 Mon Sep 17 00:00:00 2001 From: prestonderek Date: Wed, 12 Oct 2022 20:36:56 -0700 Subject: Commit for change to while loop --- CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp index 268c3b7..4d5b721 100644 --- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp +++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp @@ -53,6 +53,7 @@ ********************************************************************/ //Finished debug 1. Removed ; from while loop. This still isn't working correctly though. //Debug 2 ran to breakpoint and the while loop did not execute the cout statement. +//Changed while loop to be i<10. #include using std::cout; @@ -65,7 +66,7 @@ int main() // Breakpoint 1 // Put a breakpoint on the following line - while (i < 0) + while (i < 10) cout << i << endl; // Breakpoint 2 -- cgit v1.2.3