diff options
| author | Tim Pearse <[email protected]> | 2022-10-01 13:49:43 -0700 |
|---|---|---|
| committer | Tim Pearse <[email protected]> | 2022-10-01 13:49:43 -0700 |
| commit | 816703f59b44b5cd826998f31d6f933e242484a6 (patch) | |
| tree | 48179eb8a204b4282713cca231be1dcb255e97c5 | |
| parent | Change 1: Went through Debugging Exercises 1 & 2. (diff) | |
| download | cst116-lab0-debugging-legokid1503-816703f59b44b5cd826998f31d6f933e242484a6.tar.xz cst116-lab0-debugging-legokid1503-816703f59b44b5cd826998f31d6f933e242484a6.zip | |
Change 2: Finished Exercise 3 and added the results of running it in a txt file.
Next step : Pseudocode. Also need to fix the other project
| -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 |