aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
diff options
context:
space:
mode:
authorTim Pearse <[email protected]>2022-10-12 16:45:35 -0700
committerTim Pearse <[email protected]>2022-10-12 16:45:35 -0700
commita05acef5f7daf72c3b70671f1e3113568f82f471 (patch)
tree4931e725a7a465ceac19551e63a5adf961ddb85c /CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
parentChange 0 : Uploading gitignore (diff)
downloadcst116-chapter8-debugging-legokid1503-main.tar.xz
cst116-chapter8-debugging-legokid1503-main.zip
Change 1 : Uploading the Debugging, Output, and PseudocodeHEADmain
Diffstat (limited to 'CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp')
-rw-r--r--CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
index 53e4a61..8350a1e 100644
--- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
+++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
@@ -62,13 +62,15 @@ 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++);
- cout << count << endl;
+ for (count = 0; count < 10; count++) {
+ cout << count << endl;
+ }
return 0;
}