From 2c94f5b73d75dcfef474b22a1e25d23988b4a3a2 Mon Sep 17 00:00:00 2001 From: Morgan Cyrus Date: Wed, 19 Oct 2022 19:19:46 -0700 Subject: Error fixed --- CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (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 e239165..094f0bf 100644 --- a/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp +++ b/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp @@ -32,6 +32,8 @@ * the function was called, but the returned result wasn't stored anywhere. * * 15) Stop debugging and fix the error. +* done +* * 16) Run to Breakpoint 1. * 17) Step over the function call to GetAge. * 18) Verify that the value entered was returned and stored @@ -97,7 +99,7 @@ int main() // Breakpoint 1 // Put breakpoint on the following line - GetAge(); + age = GetAge(); days = CalcDays(age); // Breakpoint 2 -- cgit v1.2.3