From 453d23ecaf3300733e3512f5e6d81f9d396cdc4f Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Mon, 12 Feb 2024 18:25:03 -0800 Subject: notes --- Project1/Project1.sln | 31 +++++++++ Project1/Project1.vcxproj | 135 ++++++++++++++++++++++++++++++++++++++ Project1/Project1.vcxproj.filters | 22 +++++++ Project1/main.cpp | 37 +++++++++++ 4 files changed, 225 insertions(+) create mode 100644 Project1/Project1.sln create mode 100644 Project1/Project1.vcxproj create mode 100644 Project1/Project1.vcxproj.filters create mode 100644 Project1/main.cpp (limited to 'Project1') diff --git a/Project1/Project1.sln b/Project1/Project1.sln new file mode 100644 index 0000000..4312eff --- /dev/null +++ b/Project1/Project1.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34511.84 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Project1", "Project1.vcxproj", "{38EA4A8F-98BD-469D-B823-1A1061C79369}" +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 + {38EA4A8F-98BD-469D-B823-1A1061C79369}.Debug|x64.ActiveCfg = Debug|x64 + {38EA4A8F-98BD-469D-B823-1A1061C79369}.Debug|x64.Build.0 = Debug|x64 + {38EA4A8F-98BD-469D-B823-1A1061C79369}.Debug|x86.ActiveCfg = Debug|Win32 + {38EA4A8F-98BD-469D-B823-1A1061C79369}.Debug|x86.Build.0 = Debug|Win32 + {38EA4A8F-98BD-469D-B823-1A1061C79369}.Release|x64.ActiveCfg = Release|x64 + {38EA4A8F-98BD-469D-B823-1A1061C79369}.Release|x64.Build.0 = Release|x64 + {38EA4A8F-98BD-469D-B823-1A1061C79369}.Release|x86.ActiveCfg = Release|Win32 + {38EA4A8F-98BD-469D-B823-1A1061C79369}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F0D11428-2631-4730-9304-DBC671D4E30B} + EndGlobalSection +EndGlobal diff --git a/Project1/Project1.vcxproj b/Project1/Project1.vcxproj new file mode 100644 index 0000000..5c8c14c --- /dev/null +++ b/Project1/Project1.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {38ea4a8f-98bd-469d-b823-1a1061c79369} + Project1 + 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/Project1/Project1.vcxproj.filters b/Project1/Project1.vcxproj.filters new file mode 100644 index 0000000..ce0c35c --- /dev/null +++ b/Project1/Project1.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/Project1/main.cpp b/Project1/main.cpp new file mode 100644 index 0000000..6b180d9 --- /dev/null +++ b/Project1/main.cpp @@ -0,0 +1,37 @@ +// Name: Connor McDowell +// date: 2/12/2024 +// class: CST116 +// reason: inclass exercise 11, 2d arrays + +#include +#include + +#define ROW 3 +#define COLUMN 4 + +using std::cin; +using std::cout; +using std::endl; + +int matrix[ROW][COLUMN]{ {1,2,3,4}, {5,6,7,8}, {9,10,11,12} }; + +int print2DArray(int(&matrix)[ROW]{COLUMN}) +{ + for (auto i = 0u; i < ROW; ++i) + { + for (auto j = 0u; j < COLUMN; ++j) + { + cout << matrix[i][j] << " "; + } + } + return 0; +} + +int main() +{ + + print2DArray(matrix); + + + return 0; +} \ No newline at end of file -- cgit v1.2.3