From c790cb06242c72a10e2e01036b9de7cc37088763 Mon Sep 17 00:00:00 2001 From: JacobAKnox <91796123+JacobAKnox@users.noreply.github.com> Date: Sat, 23 Oct 2021 09:53:44 -0700 Subject: 8a and 8b --- 8a/8aCode/8aCode.cpp | 38 ++++++++++ 8a/8aCode/8aCode.sln | 31 +++++++++ 8a/8aCode/8aCode.vcxproj | 147 +++++++++++++++++++++++++++++++++++++++ 8a/8aCode/8aCode.vcxproj.filters | 22 ++++++ 4 files changed, 238 insertions(+) create mode 100644 8a/8aCode/8aCode.cpp create mode 100644 8a/8aCode/8aCode.sln create mode 100644 8a/8aCode/8aCode.vcxproj create mode 100644 8a/8aCode/8aCode.vcxproj.filters (limited to '8a/8aCode') diff --git a/8a/8aCode/8aCode.cpp b/8a/8aCode/8aCode.cpp new file mode 100644 index 0000000..e876c71 --- /dev/null +++ b/8a/8aCode/8aCode.cpp @@ -0,0 +1,38 @@ +// 8aCode.cpp : This file contains the 'main' function. Program execution begins and ends there. +// + +#include +using namespace std; + +void readValues(int& a, int& b); +double divideValues(int a, int b); + +int main() +{ + int a, b; + double out; + + readValues(a, b); + out = divideValues(a, b); + + cout << "The double value of " << a << "/" << b << " is: " << out << "."; +} + + +void readValues(int& a, int& b) +{ + cout << "Input the first int: "; + cin >> a; + cout << "\nInput the second int: "; + cin >> b; + cout << "\n\n"; + return; +} + +double divideValues(int a, int b) +{ + double value; + + value = (double)a / (double)b; + return value; +} \ No newline at end of file diff --git a/8a/8aCode/8aCode.sln b/8a/8aCode/8aCode.sln new file mode 100644 index 0000000..11ab177 --- /dev/null +++ b/8a/8aCode/8aCode.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31729.503 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "8aCode", "8aCode.vcxproj", "{08FFD9D4-3D06-400E-916B-D6F0D12B6347}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {08FFD9D4-3D06-400E-916B-D6F0D12B6347}.Debug|x64.ActiveCfg = Debug|x64 + {08FFD9D4-3D06-400E-916B-D6F0D12B6347}.Debug|x64.Build.0 = Debug|x64 + {08FFD9D4-3D06-400E-916B-D6F0D12B6347}.Debug|x86.ActiveCfg = Debug|Win32 + {08FFD9D4-3D06-400E-916B-D6F0D12B6347}.Debug|x86.Build.0 = Debug|Win32 + {08FFD9D4-3D06-400E-916B-D6F0D12B6347}.Release|x64.ActiveCfg = Release|x64 + {08FFD9D4-3D06-400E-916B-D6F0D12B6347}.Release|x64.Build.0 = Release|x64 + {08FFD9D4-3D06-400E-916B-D6F0D12B6347}.Release|x86.ActiveCfg = Release|Win32 + {08FFD9D4-3D06-400E-916B-D6F0D12B6347}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {901FF620-2656-4835-AC7F-8769F68E5264} + EndGlobalSection +EndGlobal diff --git a/8a/8aCode/8aCode.vcxproj b/8a/8aCode/8aCode.vcxproj new file mode 100644 index 0000000..7f439ca --- /dev/null +++ b/8a/8aCode/8aCode.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {08ffd9d4-3d06-400e-916b-d6f0d12b6347} + My8aCode + 10.0 + + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + false + + + true + + + false + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/8a/8aCode/8aCode.vcxproj.filters b/8a/8aCode/8aCode.vcxproj.filters new file mode 100644 index 0000000..34a3aad --- /dev/null +++ b/8a/8aCode/8aCode.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + \ No newline at end of file -- cgit v1.2.3