aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp')
-rw-r--r--CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp3
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