aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp')
-rw-r--r--CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp b/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp
index 274a455..f58bbe7 100644
--- a/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp
+++ b/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp
@@ -15,7 +15,7 @@
* 6) Step Into the code for the function GetAge.
* 7) The execution continues to the function header for GetAge.
* 8) Step into one more time.
-* 9) Why did the address of age and value change? Im guessing something to do with me not inputing something or something storage related.
+* 9) Why did the address of age and value change? Age wasnt assigned to the get age variable.
* 10) Step over the cout and cin statements.
* 11) Verify the value entered is stored properly in age.
* 12) Step into until the flow returns to main.
@@ -35,7 +35,7 @@
* 3) Step into CalcDays.
* 4) Step into one more time so that the current line is the
* calculation.
-* 5) Why is age greyed out in your watch window?
+* 5) Why is age greyed out in your watch window? Because they are no longer in the scope of the function.
* 6) Stop debugging.
*
* Debugging Exercise 3
@@ -83,7 +83,7 @@ int main()
// Breakpoint 2
// Put breakpoint on the following line
- PrintResults(age, days);
+ PrintResults(days, age);
return 0;
}