From 94e811d9253ae8208d94b842b8301ff0bad55574 Mon Sep 17 00:00:00 2001 From: Tim Pearse Date: Wed, 19 Oct 2022 16:59:48 -0700 Subject: Change 1 : All of the debug exercises completed Next step : output and pseudocode files --- CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 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 eff8980..5f684c5 100644 --- a/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp +++ b/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp @@ -12,6 +12,7 @@ * 4) Add another watch using &age for the name. This will display * the address of age. * 5) Write down the address of age. +* 0x000000929e6ffb44 {0} * 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. @@ -77,12 +78,12 @@ int main() // Breakpoint 1 // Put breakpoint on the following line - GetAge(); + age = GetAge(); days = CalcDays(age); // Breakpoint 2 // Put breakpoint on the following line - PrintResults(age, days); + PrintResults(days, age); return 0; } -- cgit v1.2.3