diff options
Diffstat (limited to 'Ch 5 Debugging Project/Ch 5 Debugging Project.cpp')
| -rw-r--r-- | Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp index 0147ef8..0f43db8 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -48,7 +48,8 @@ * You have $123.45
* Enter percent raise:
*
-* This isn't exactly what I expected though..
+* This isn't exactly what I expected though.. The Step Out tool doesn't seem to be stepping back and instead goes to the next cout.
+*
* 11) Select Stop Debugging either from the Debug menu or from your
* toolbar.
*done
@@ -59,15 +60,30 @@ *
* 1) With the program stopped, run to Breakpoint 1 by selecting
* the Start Debugging menu option, toolbar icon or press F5.
+* done
+*
* 2) Step over the cout.
+* done
+*
* 3) Step over the cin. Notice that you can now enter a value.
+* done
+*
* 4) Enter the value .1 and press enter.
+* done
+*
* 5) Notice that the current line of execution is now at the
* calculation.
+* done
+*
* 6) Look at your watch. What is the value of money?
+* 123.449997
+*
* 7) Hover your mouse pointer over raise. What is its value?
+* .100000001
+*
* 8) Step over the calculation. Notice the watch on money is now
* red. This designates that the variable just changed its value.
+*
* 9) What happened to our money? I thought a raise was supposed
* to increase our money? Stop debugging and fix the calculation.
*/
|