From a6df2bf4bce06aedc8d74028a23a3303adfcaa2a Mon Sep 17 00:00:00 2001 From: rPatrickWarner Date: Mon, 12 Feb 2024 21:04:11 -0800 Subject: completed --- InClassExercise11/InClassExercise11.sln | 31 +++++ .../InClassExercise11/InClassExercise11.vcxproj | 135 +++++++++++++++++++++ .../InClassExercise11.vcxproj.filters | 22 ++++ InClassExercise11/InClassExercise11/Main.cpp | 56 +++++++++ 4 files changed, 244 insertions(+) create mode 100644 InClassExercise11/InClassExercise11.sln create mode 100644 InClassExercise11/InClassExercise11/InClassExercise11.vcxproj create mode 100644 InClassExercise11/InClassExercise11/InClassExercise11.vcxproj.filters create mode 100644 InClassExercise11/InClassExercise11/Main.cpp (limited to 'InClassExercise11') diff --git a/InClassExercise11/InClassExercise11.sln b/InClassExercise11/InClassExercise11.sln new file mode 100644 index 0000000..b1644a1 --- /dev/null +++ b/InClassExercise11/InClassExercise11.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34330.188 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "InClassExercise11", "InClassExercise11\InClassExercise11.vcxproj", "{00BB191A-76E6-400F-83FD-CAD03EE76AC4}" +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 + {00BB191A-76E6-400F-83FD-CAD03EE76AC4}.Debug|x64.ActiveCfg = Debug|x64 + {00BB191A-76E6-400F-83FD-CAD03EE76AC4}.Debug|x64.Build.0 = Debug|x64 + {00BB191A-76E6-400F-83FD-CAD03EE76AC4}.Debug|x86.ActiveCfg = Debug|Win32 + {00BB191A-76E6-400F-83FD-CAD03EE76AC4}.Debug|x86.Build.0 = Debug|Win32 + {00BB191A-76E6-400F-83FD-CAD03EE76AC4}.Release|x64.ActiveCfg = Release|x64 + {00BB191A-76E6-400F-83FD-CAD03EE76AC4}.Release|x64.Build.0 = Release|x64 + {00BB191A-76E6-400F-83FD-CAD03EE76AC4}.Release|x86.ActiveCfg = Release|Win32 + {00BB191A-76E6-400F-83FD-CAD03EE76AC4}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {14852EAA-F2F0-4BF5-9A96-FC0831AC2778} + EndGlobalSection +EndGlobal diff --git a/InClassExercise11/InClassExercise11/InClassExercise11.vcxproj b/InClassExercise11/InClassExercise11/InClassExercise11.vcxproj new file mode 100644 index 0000000..7883687 --- /dev/null +++ b/InClassExercise11/InClassExercise11/InClassExercise11.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {00bb191a-76e6-400f-83fd-cad03ee76ac4} + InClassExercise11 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + 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/InClassExercise11/InClassExercise11/InClassExercise11.vcxproj.filters b/InClassExercise11/InClassExercise11/InClassExercise11.vcxproj.filters new file mode 100644 index 0000000..26604cf --- /dev/null +++ b/InClassExercise11/InClassExercise11/InClassExercise11.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 diff --git a/InClassExercise11/InClassExercise11/Main.cpp b/InClassExercise11/InClassExercise11/Main.cpp new file mode 100644 index 0000000..a1e3b72 --- /dev/null +++ b/InClassExercise11/InClassExercise11/Main.cpp @@ -0,0 +1,56 @@ +//Name:Reece Warner +//Date:2/12/2024 +//CST 116 InClassExercise 11 +#include +constexpr int ROW = 3; +constexpr int COL = 3; + +using std::cin; +using std::cout; +using std::endl; + + + +void Print2DArray(int(&matrix)[ROW][COL]); + + + +int main() +{ + int value = 1; + int matrix[ROW][COL] = { {}, + {}, + {} }; + + for (auto i = 0u; i < ROW; i++) + { + + for (auto j = 0u; j < COL; j++) + { + matrix[i][j] = value; + value++; + } + + } + + Print2DArray(matrix); + + + return 0; +} + +void Print2DArray(int(&matrix)[ROW][COL]) +{ + for (auto i = 0u; i < ROW; i++) + { + + for (auto j = 0u; j < COL; j++) + { + cout << matrix[i][j] << " "; + } + cout << endl; + } + cout << endl; + + +} \ No newline at end of file -- cgit v1.2.3