diff options
| author | tafaar <[email protected]> | 2022-10-18 14:51:01 -0700 |
|---|---|---|
| committer | tafaar <[email protected]> | 2022-10-18 14:51:01 -0700 |
| commit | 4301cea17413dee65743899e0cdf96d9f491d9fa (patch) | |
| tree | 945c5ffe55c8dd8adbb78b81671180a13a9699cf /CST116-Ch9-Debugging | |
| parent | finished (diff) | |
| download | cst116-ch9-debugging-hill-4301cea17413dee65743899e0cdf96d9f491d9fa.tar.xz cst116-ch9-debugging-hill-4301cea17413dee65743899e0cdf96d9f491d9fa.zip | |
edited declaration of printresults
Diffstat (limited to 'CST116-Ch9-Debugging')
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 |