diff options
| author | tafaar <[email protected]> | 2022-10-11 18:51:59 -0700 |
|---|---|---|
| committer | tafaar <[email protected]> | 2022-10-11 18:51:59 -0700 |
| commit | e10655a2c3147aeb2d4c9c005cb670e5b5e87b15 (patch) | |
| tree | 4e08cfcf6e92427c9d262d13ddeea0f320c13b8a /CST116-Ch8-Debugging | |
| parent | exercise 1 (diff) | |
| download | cst116-chapter8-debugging-hill-e10655a2c3147aeb2d4c9c005cb670e5b5e87b15.tar.xz cst116-chapter8-debugging-hill-e10655a2c3147aeb2d4c9c005cb670e5b5e87b15.zip | |
added i++
Diffstat (limited to 'CST116-Ch8-Debugging')
| -rw-r--r-- | CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp index 53e4a61..cfdfd94 100644 --- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp +++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp @@ -18,6 +18,7 @@ * 9) Stop debugging and repeat Steps 2 � 5 to verify the correction
* worked.
* 10) Stop debugging.
+* Done
*
* Debugging Exercise 2
*
@@ -62,8 +63,10 @@ int main() // Breakpoint 1
// Put a breakpoint on the following line
- while (i < 0);
- cout << i << endl;
+ while (i < 1) {
+ cout << i << endl;
+ i++;
+ }
// Breakpoint 2
// Put a breakpoint on the following line
|