diff options
| author | tafaar <[email protected]> | 2022-10-11 18:54:54 -0700 |
|---|---|---|
| committer | tafaar <[email protected]> | 2022-10-11 18:54:54 -0700 |
| commit | e76dc25dd4973225e979dc4054a772e7d89368f8 (patch) | |
| tree | f456f9a1d91846c644d5bb116042105972660a50 | |
| parent | did 5 (diff) | |
| download | cst116-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.cpp | 3 |
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
|