diff options
| author | Tim Pearse <[email protected]> | 2022-10-19 16:59:48 -0700 |
|---|---|---|
| committer | Tim Pearse <[email protected]> | 2022-10-19 16:59:48 -0700 |
| commit | 94e811d9253ae8208d94b842b8301ff0bad55574 (patch) | |
| tree | ad72f2fa519f19b239f470108640fd806f0fff26 /CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp | |
| parent | Setting up GitHub Classroom Feedback (diff) | |
| download | cst116-ch9-debugging-legokid1503-94e811d9253ae8208d94b842b8301ff0bad55574.tar.xz cst116-ch9-debugging-legokid1503-94e811d9253ae8208d94b842b8301ff0bad55574.zip | |
Change 1 : All of the debug exercises completed
Next step : output and pseudocode files
Diffstat (limited to 'CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp')
| -rw-r--r-- | CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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;
}
|