diff options
| author | [email protected] <[email protected]> | 2022-09-29 15:38:09 -0700 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2022-09-29 15:38:09 -0700 |
| commit | 583dd6067d9a923e9fe00566302ab83707c1830b (patch) | |
| tree | 61f74d23be65572c803b82d2eea8216fff9f791c /Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | |
| parent | I have done things to this file, or have I..? (diff) | |
| download | cst116-debugging-smith-main.tar.xz cst116-debugging-smith-main.zip | |
Diffstat (limited to 'Ch 5 Debugging Project/Ch 5 Debugging Project.cpp')
| -rw-r--r-- | Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp index 6545e9b..469a1f6 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -1,4 +1,14 @@ /********************************************************************
+* Benjamin Smith
+* CST116
+
+Lab #0
+
+IDE, Simple Program, GitHub
+*
+*
+*
+*
* File: Chap_5_Debugging.cpp
*
* General Instructions: Complete each step before proceeding to the
@@ -16,6 +26,7 @@ * the current line being that cout statement, Step Into again.
* 6) What happened? Where are we now? What is all of this nasty
* looking code?
+* --> This is the source code behind certain commands
* 7) Remember, stepping into a predefined routine takes you to the
* code for that routine. If the debugger can't find the code it
* will show the assembly code for that routine.
@@ -37,8 +48,10 @@ * 4) Enter the value .1 and press enter.
* 5) Notice that the current line of execution is now at the
* calculation.
-* 6) Look at your watch. What is the value of money?
-* 7) Hover your mouse pointer over raise. What is its value?
+* 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
@@ -76,7 +89,7 @@ int main() cout << "Enter percent raise: ";
cin >> raise;
- money = money * raise;
+ money += money * raise;
cout << "After your raise you have $";
cout << money << endl;
|