diff options
Diffstat (limited to 'CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp')
| -rw-r--r-- | CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp index b5b3305..3adcc8d 100644 --- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp +++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp @@ -14,13 +14,24 @@ * done
*
* 2) Run to Breakpoint 1.
+* done
+*
* 3) Place a watch on i.
+* done
+*
* 4) Execute the while statement by doing a "Step Into".
+* done
+*
* 5) The execution continues to the cout statement as expected.
* 6) Step over the cout statement.
+* done
+*
* 7) Why didn't the flow of the program return back to the while
* statement?
+* the while says while I is less than 0. Since i == 0, the while loop ends (i is 0, not less than 0)
+*
* 8) Fix this problem by removing the ; after the while statement.
+*
* 9) Stop debugging and repeat Steps 2 � 5 to verify the correction
* worked.
* 10) Stop debugging.
|