diff options
| author | prestonderek <[email protected]> | 2022-10-12 20:36:56 -0700 |
|---|---|---|
| committer | prestonderek <[email protected]> | 2022-10-12 20:36:56 -0700 |
| commit | 710a84e362d0cc57b1b1417cf87f59f1671c8c20 (patch) | |
| tree | cc5ff9d05a87306f80e0ba9e0bf212a9e7475115 /CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp | |
| parent | Commit for start of exersize 2. (diff) | |
| download | cst116-chapter8-debugging-prestonderek-710a84e362d0cc57b1b1417cf87f59f1671c8c20.tar.xz cst116-chapter8-debugging-prestonderek-710a84e362d0cc57b1b1417cf87f59f1671c8c20.zip | |
Commit for change to while loop
Diffstat (limited to 'CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp')
| -rw-r--r-- | CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp index 268c3b7..4d5b721 100644 --- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp +++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp @@ -53,6 +53,7 @@ ********************************************************************/
//Finished debug 1. Removed ; from while loop. This still isn't working correctly though.
//Debug 2 ran to breakpoint and the while loop did not execute the cout statement.
+//Changed while loop to be i<10.
#include <iostream>
using std::cout;
@@ -65,7 +66,7 @@ int main() // Breakpoint 1
// Put a breakpoint on the following line
- while (i < 0)
+ while (i < 10)
cout << i << endl;
// Breakpoint 2
|