diff options
| author | Morgan Cyrus <[email protected]> | 2022-10-12 21:07:49 -0700 |
|---|---|---|
| committer | Morgan Cyrus <[email protected]> | 2022-10-12 21:07:49 -0700 |
| commit | 03df225be065eec67a64aab12abc3b79e9f80ddb (patch) | |
| tree | 9ff218e2d88b0ec8524b5d701be7eacc5ae901dc /CST116-Ch8-Debugging | |
| parent | breakpoints entered. (diff) | |
| download | cst116-chapter8-cyrus-03df225be065eec67a64aab12abc3b79e9f80ddb.tar.xz cst116-chapter8-cyrus-03df225be065eec67a64aab12abc3b79e9f80ddb.zip | |
done with step 7
Diffstat (limited to 'CST116-Ch8-Debugging')
| -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.
|