aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp
diff options
context:
space:
mode:
authorMorgan Cyrus <[email protected]>2022-10-19 19:19:46 -0700
committerMorgan Cyrus <[email protected]>2022-10-19 19:19:46 -0700
commit2c94f5b73d75dcfef474b22a1e25d23988b4a3a2 (patch)
tree54a8c14a9c7d1ba93d429b1e85d3bb7354ad32ce /CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp
parentstep 14 (diff)
downloadcst116-ch9-debugging-radioflyer32-2c94f5b73d75dcfef474b22a1e25d23988b4a3a2.tar.xz
cst116-ch9-debugging-radioflyer32-2c94f5b73d75dcfef474b22a1e25d23988b4a3a2.zip
Error fixed
Diffstat (limited to 'CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp')
-rw-r--r--CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp4
1 files changed, 3 insertions, 1 deletions
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