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.cpp7
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