diff options
| -rw-r--r-- | Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 4 | ||||
| -rw-r--r-- | Ch 5 Debugging Project/cst116-lab0-Pearse.txt | 7 |
2 files changed, 10 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 3a09c34..848e076 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -50,7 +50,9 @@ * 5) Notice that the current line of execution is now at the
* calculation.
* 6) Look at your watch. What is the value of money?
+* 123.45
* 7) Hover your mouse pointer over raise. What is its value?
+* .1
* 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
@@ -85,7 +87,7 @@ int main() // Breakpoint 1
// Put a breakpoint on the following line
- cout << "Enter percent raise: ";
+ cout << "Enter PERCENT raise: ";
cin >> raise;
diff --git a/Ch 5 Debugging Project/cst116-lab0-Pearse.txt b/Ch 5 Debugging Project/cst116-lab0-Pearse.txt new file mode 100644 index 0000000..daae384 --- /dev/null +++ b/Ch 5 Debugging Project/cst116-lab0-Pearse.txt @@ -0,0 +1,7 @@ +You have $20 +Enter PERCENT raise: 10 +After your raise you have $22 + +C:\Users\legok\source\repos\cst116-lab0-debugging-legokid1503\Ch 5 Debugging Project\x64\Debug\Ch 5 Debugging Project.exe (process 19064) exited with code 0. +To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops. +Press any key to close this window . . .
\ No newline at end of file |