From df17278b257df302a3e821026e254cb7afb2efc7 Mon Sep 17 00:00:00 2001 From: prestonderek Date: Tue, 18 Oct 2022 10:20:15 -0700 Subject: Finished exercise 2 --- CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp | 2 ++ 1 file changed, 2 insertions(+) (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 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 using std::cout; using std::cin; -- cgit v1.2.3