aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortafaar <[email protected]>2022-10-11 18:54:54 -0700
committertafaar <[email protected]>2022-10-11 18:54:54 -0700
commite76dc25dd4973225e979dc4054a772e7d89368f8 (patch)
treef456f9a1d91846c644d5bb116042105972660a50
parentdid 5 (diff)
downloadcst116-chapter8-debugging-hill-e76dc25dd4973225e979dc4054a772e7d89368f8.tar.xz
cst116-chapter8-debugging-hill-e76dc25dd4973225e979dc4054a772e7d89368f8.zip
Did exercise 3.4
-rw-r--r--CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
index 2aa65ca..9143aff 100644
--- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
+++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
@@ -73,8 +73,7 @@ int main()
// Breakpoint 1
// Put a breakpoint on the following line
while (i < 10) {
- cout << i << endl;
- i++;
+ cout << i++ << endl;
}
// Breakpoint 2