From e10655a2c3147aeb2d4c9c005cb670e5b5e87b15 Mon Sep 17 00:00:00 2001 From: tafaar Date: Tue, 11 Oct 2022 18:51:59 -0700 Subject: added i++ --- CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (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 53e4a61..cfdfd94 100644 --- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp +++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp @@ -18,6 +18,7 @@ * 9) Stop debugging and repeat Steps 2 – 5 to verify the correction * worked. * 10) Stop debugging. +* Done * * Debugging Exercise 2 * @@ -62,8 +63,10 @@ int main() // Breakpoint 1 // Put a breakpoint on the following line - while (i < 0); - cout << i << endl; + while (i < 1) { + cout << i << endl; + i++; + } // Breakpoint 2 // Put a breakpoint on the following line -- cgit v1.2.3