aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Rogers <[email protected]>2022-10-11 08:24:43 -0700
committerTaylor Rogers <[email protected]>2022-10-11 08:24:43 -0700
commit2b5c9cc455a35b665552e11015139f937feb39eb (patch)
tree63c2b62e809a5affe3a3369b81568b5af55a9654
parentAnswer E2 Q3 and Q4 (diff)
downloadcst116-chapter8-debugging-taylorrog-2b5c9cc455a35b665552e11015139f937feb39eb.tar.xz
cst116-chapter8-debugging-taylorrog-2b5c9cc455a35b665552e11015139f937feb39eb.zip
Answer E3 Q5
-rw-r--r--CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
index 539e115..b6fbd4b 100644
--- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
+++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
@@ -51,6 +51,8 @@
* statement.
* 5) Run the program to Breakpoint 2 and verify that the output
* displayed on the screen is 0 � 9.
+*
+* Correct, displays 0 to 9 and nothing else when running to breakpoint 2
*
* Debugging Exercise 4
*
@@ -73,8 +75,8 @@ int main()
// Breakpoint 1
// Put a breakpoint on the following line
- while (i < 0)
- cout << i << endl;
+ while (i < 10)
+ cout << i++ << endl;
// Breakpoint 2
// Put a breakpoint on the following line