diff options
Diffstat (limited to 'CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp')
| -rw-r--r-- | CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp index 6f76146..4b86805 100644 --- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp +++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp @@ -62,9 +62,9 @@ int main() // Breakpoint 1
// Put a breakpoint on the following line
- while (i <= 10)
+ while (i < 10)
- cout << i << endl;
+ cout << i++ << endl;
|