From e8412915af696402b1bb0583f83317a3f786d3f8 Mon Sep 17 00:00:00 2001 From: Yana Blashchishina Date: Mon, 5 Feb 2024 19:13:31 -0800 Subject: init --- InClassExercise9/InClassExercise9.sln | 31 +++++ .../InClassExercise9/InClassExercise9.vcxproj | 139 +++++++++++++++++++++ .../InClassExercise9.vcxproj.filters | 30 +++++ .../InClassExercise9/ReferenceExamples.cpp | 14 +++ .../InClassExercise9/ReferenceExamples.h | 13 ++ InClassExercise9/InClassExercise9/program.cpp | 32 +++++ 6 files changed, 259 insertions(+) create mode 100644 InClassExercise9/InClassExercise9.sln create mode 100644 InClassExercise9/InClassExercise9/InClassExercise9.vcxproj create mode 100644 InClassExercise9/InClassExercise9/InClassExercise9.vcxproj.filters create mode 100644 InClassExercise9/InClassExercise9/ReferenceExamples.cpp create mode 100644 InClassExercise9/InClassExercise9/ReferenceExamples.h create mode 100644 InClassExercise9/InClassExercise9/program.cpp (limited to 'InClassExercise9') diff --git a/InClassExercise9/InClassExercise9.sln b/InClassExercise9/InClassExercise9.sln new file mode 100644 index 0000000..dc7f4b2 --- /dev/null +++ b/InClassExercise9/InClassExercise9.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}") = "InClassExercise9", "InClassExercise9\InClassExercise9.vcxproj", "{D7AE1432-A5D7-47BD-8389-E67CCB051F4D}" +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 + {D7AE1432-A5D7-47BD-8389-E67CCB051F4D}.Debug|x64.ActiveCfg = Debug|x64 + {D7AE1432-A5D7-47BD-8389-E67CCB051F4D}.Debug|x64.Build.0 = Debug|x64 + {D7AE1432-A5D7-47BD-8389-E67CCB051F4D}.Debug|x86.ActiveCfg = Debug|Win32 + {D7AE1432-A5D7-47BD-8389-E67CCB051F4D}.Debug|x86.Build.0 = Debug|Win32 + {D7AE1432-A5D7-47BD-8389-E67CCB051F4D}.Release|x64.ActiveCfg = Release|x64 + {D7AE1432-A5D7-47BD-8389-E67CCB051F4D}.Release|x64.Build.0 = Release|x64 + {D7AE1432-A5D7-47BD-8389-E67CCB051F4D}.Release|x86.ActiveCfg = Release|Win32 + {D7AE1432-A5D7-47BD-8389-E67CCB051F4D}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {C8C19AC2-662D-4C08-998C-BA1958F90DB5} + EndGlobalSection +EndGlobal diff --git a/InClassExercise9/InClassExercise9/InClassExercise9.vcxproj b/InClassExercise9/InClassExercise9/InClassExercise9.vcxproj new file mode 100644 index 0000000..201a582 --- /dev/null +++ b/InClassExercise9/InClassExercise9/InClassExercise9.vcxproj @@ -0,0 +1,139 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {d7ae1432-a5d7-47bd-8389-e67ccb051f4d} + InClassExercise9 + 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/InClassExercise9/InClassExercise9/InClassExercise9.vcxproj.filters b/InClassExercise9/InClassExercise9/InClassExercise9.vcxproj.filters new file mode 100644 index 0000000..8ad95bd --- /dev/null +++ b/InClassExercise9/InClassExercise9/InClassExercise9.vcxproj.filters @@ -0,0 +1,30 @@ + + + + + {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 + + + Source Files + + + + + Header Files + + + \ No newline at end of file diff --git a/InClassExercise9/InClassExercise9/ReferenceExamples.cpp b/InClassExercise9/InClassExercise9/ReferenceExamples.cpp new file mode 100644 index 0000000..b19b7b7 --- /dev/null +++ b/InClassExercise9/InClassExercise9/ReferenceExamples.cpp @@ -0,0 +1,14 @@ + +#include "ReferenceExamples.h" + +void Swap(int& x, int& y) { + +} + +void Standardize_101(int& n) { + +} + +void Square(int& x) { + +} diff --git a/InClassExercise9/InClassExercise9/ReferenceExamples.h b/InClassExercise9/InClassExercise9/ReferenceExamples.h new file mode 100644 index 0000000..78e3166 --- /dev/null +++ b/InClassExercise9/InClassExercise9/ReferenceExamples.h @@ -0,0 +1,13 @@ +#ifndef REFERENCE_EXAMPLES_H +#define REFERNECE_EXAMPLES_H + + +void Swap(int& x, int& y); + +void Standardize_101(int& n); + +void Square(int& x); + + + +#endif diff --git a/InClassExercise9/InClassExercise9/program.cpp b/InClassExercise9/InClassExercise9/program.cpp new file mode 100644 index 0000000..c87b4f0 --- /dev/null +++ b/InClassExercise9/InClassExercise9/program.cpp @@ -0,0 +1,32 @@ +#include "ReferenceExamples.h" +#include +using std::cout; +using std::endl; + +int main() { + + + int x = 5, y = 72; + + Swap(x, y); + + std::cout << "x = " << x << ", y = " << y << endl; + + int n = 4392; + + Standardize_101(n); + + cout << "Moded n = " << n << endl; + + Square(n); + + cout << "Squared n = " << n << endl; + + cout << "Size of an int " << sizeof(int); + + + + + + +} \ No newline at end of file -- cgit v1.2.3