From e11b49849c6438bb9d71c33eb797bf58bb0b3df4 Mon Sep 17 00:00:00 2001 From: Kai Date: Wed, 19 Oct 2022 19:54:03 -0700 Subject: fixed --- CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp') 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; } -- cgit v1.2.3