aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CST116-Ch9-Debugging/CST116-Ch9-Debugging-Flowchart.txt15
-rw-r--r--CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp2
-rw-r--r--CST116-Ch9-Debugging/CST116-Ch9-Debugging.vcxproj3
-rw-r--r--CST116-Ch9-Debugging/CST116-Ch9-Debugging.vcxproj.filters5
4 files changed, 24 insertions, 1 deletions
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 @@
<ItemGroup>
<ClCompile Include="CST116-Ch9-Debugging.cpp" />
</ItemGroup>
+ <ItemGroup>
+ <Text Include="CST116-Ch9-Debugging-Flowchart.txt" />
+ </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
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 @@
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
+ <ItemGroup>
+ <Text Include="CST116-Ch9-Debugging-Flowchart.txt">
+ <Filter>Source Files</Filter>
+ </Text>
+ </ItemGroup>
</Project> \ No newline at end of file