From b8ad331735d114f593a285741a55ffc66c5659fd Mon Sep 17 00:00:00 2001 From: Hannah Wu Date: Wed, 12 Oct 2022 02:12:07 -0700 Subject: Implemented changes to main file. --- CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 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..e38c270 100644 --- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp +++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp @@ -62,13 +62,14 @@ int main() // Breakpoint 1 // Put a breakpoint on the following line - while (i < 0); - cout << i << endl; + + while (i < 10) + cout << i++ << endl; // Breakpoint 2 // Put a breakpoint on the following line - for (count = 0; count < 10; count++); + for (count = 0; count < 10; count++) { cout << count << endl; - +} return 0; } -- cgit v1.2.3