From 4301cea17413dee65743899e0cdf96d9f491d9fa Mon Sep 17 00:00:00 2001 From: tafaar Date: Tue, 18 Oct 2022 14:51:01 -0700 Subject: edited declaration of printresults --- CST116-Ch9-Debugging/CST116-Ch9-Debugging-Flowchart.txt | 15 +++++++++++++++ CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp | 2 +- CST116-Ch9-Debugging/CST116-Ch9-Debugging.vcxproj | 3 +++ CST116-Ch9-Debugging/CST116-Ch9-Debugging.vcxproj.filters | 5 +++++ 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 CST116-Ch9-Debugging/CST116-Ch9-Debugging-Flowchart.txt diff --git a/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Flowchart.txt b/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Flowchart.txt new file mode 100644 index 0000000..6fb6924 --- /dev/null +++ b/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Flowchart.txt @@ -0,0 +1,15 @@ +Please enter your age: 20 +20! Boy are you old! +Did you know that you are at least 7300 days old? + +// + +FLOWCHART -> + +SET CONSTANT INT DAYS_PER_YEAR TO 365; + +DECLARE FUNCTIONS: + int GetAge(); + int CalcDays(int age); + void PrintResults(int days, age); + \ No newline at end of file diff --git a/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp b/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp index e9e5b05..4d2104f 100644 --- a/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp +++ b/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp @@ -83,7 +83,7 @@ const int DAYS_PER_YEAR = 365; int GetAge(); int CalcDays(int age); -void PrintResults(int age, int days); +void PrintResults(int days, int age); int main() { diff --git a/CST116-Ch9-Debugging/CST116-Ch9-Debugging.vcxproj b/CST116-Ch9-Debugging/CST116-Ch9-Debugging.vcxproj index d7fabd9..b1dc822 100644 --- a/CST116-Ch9-Debugging/CST116-Ch9-Debugging.vcxproj +++ b/CST116-Ch9-Debugging/CST116-Ch9-Debugging.vcxproj @@ -129,6 +129,9 @@ + + + diff --git a/CST116-Ch9-Debugging/CST116-Ch9-Debugging.vcxproj.filters b/CST116-Ch9-Debugging/CST116-Ch9-Debugging.vcxproj.filters index 2f59736..b412e64 100644 --- a/CST116-Ch9-Debugging/CST116-Ch9-Debugging.vcxproj.filters +++ b/CST116-Ch9-Debugging/CST116-Ch9-Debugging.vcxproj.filters @@ -19,4 +19,9 @@ Source Files + + + Source Files + + \ No newline at end of file -- cgit v1.2.3