From 4665f80fb339ecf62c83f6b0a42037560b56f514 Mon Sep 17 00:00:00 2001 From: Morgan Cyrus Date: Sun, 30 Oct 2022 11:20:14 -0700 Subject: exercise 2 finished --- CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'CST116-Ch10-Debugging') diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp index 70c9288..8039704 100644 --- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp @@ -56,20 +56,33 @@ * 2) Change any literal containing a 5 to the constant SIZE. * Notice the usefulness of the constant when changes need * to be made to your code. -* +* done * * 3) Set a breakpoint at Breakpoint 4. Now on this breakpoint * set the necessary condition so the loop breaks when x hits 8. * (Hint: If you need help setting breakpoints based upon a * condition refer to Chapter 8). +* done +* * 4) Run to Breakpoint 4. +* done +* * 5) Continue stepping into the remainder of the for loop until the * flow returns back to main. +* done +* * 6) Make sure your Watch window is visible and notice the contents * of varY and varZ now that you are back in main. +* done +* * 7) Stop debugging. +* done +* * 8) Disable all breakpoints. +* done +* * 9) Rebuild and execute the program and verify the results. +* */ /* Debugging Exercise 3 -- cgit v1.2.3