aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp
diff options
context:
space:
mode:
authorprestonderek <[email protected]>2022-10-18 10:20:15 -0700
committerprestonderek <[email protected]>2022-10-18 10:20:15 -0700
commitdf17278b257df302a3e821026e254cb7afb2efc7 (patch)
tree776a37092da2597d135741f0a665cc2e729d11d9 /CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp
parentCommit at end of exercise 1 (diff)
downloadcst116-ch9-debugging-prestonderek-df17278b257df302a3e821026e254cb7afb2efc7.tar.xz
cst116-ch9-debugging-prestonderek-df17278b257df302a3e821026e254cb7afb2efc7.zip
Finished exercise 2
Diffstat (limited to 'CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp')
-rw-r--r--CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp b/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp
index a849a8a..3b560fb 100644
--- a/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp
+++ b/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp
@@ -66,6 +66,8 @@
//the address and value of age changed when entering the function because the function is in another loaction and declares age again.
//getage properly works now. the int in main has to be assigned to the function
+//in exercise 2, age is greyed out in the watch window because in the calcdays function it is considered a constant.
+
#include <iostream>
using std::cout;
using std::cin;