diff options
| author | Morgan Cyrus <[email protected]> | 2022-10-07 20:55:12 -0700 |
|---|---|---|
| committer | Morgan Cyrus <[email protected]> | 2022-10-07 20:55:12 -0700 |
| commit | 8e40987f18248f31c834042c1bc487ce643b1219 (patch) | |
| tree | 2d55f978e21f8ba12fc5c032414186bb0481922b | |
| parent | Debugging issues. (diff) | |
| download | cst116-ch5-debugging-cyrus-8e40987f18248f31c834042c1bc487ce643b1219.tar.xz cst116-ch5-debugging-cyrus-8e40987f18248f31c834042c1bc487ce643b1219.zip | |
Finished Exercise 2 Step 8
| -rw-r--r-- | Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 18 | ||||
| -rw-r--r-- | Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe | bin | 53760 -> 53760 bytes | |||
| -rw-r--r-- | Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk | bin | 531168 -> 548584 bytes | |||
| -rw-r--r-- | Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj | bin | 82711 -> 82711 bytes | |||
| -rw-r--r-- | Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb | bin | 2248704 -> 2330624 bytes |
5 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.
*/
diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe Binary files differindex d215ed5..2aebc04 100644 --- a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe +++ b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk Binary files differindex e5e19fe..09d2574 100644 --- a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk +++ b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj Binary files differindex c22cf3e..1cebfa1 100644 --- a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj +++ b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb Binary files differindex dd954d8..743653d 100644 --- a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb +++ b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb |