aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--InClassExercise4/InClassExercise4/InClassExercise4.vcxproj37
-rw-r--r--InClassExercise4/InClassExercise4/InClassExercise4.vcxproj.filters5
-rw-r--r--InClassExercise4/InClassExercise4/source.cpp60
3 files changed, 82 insertions, 20 deletions
diff --git a/InClassExercise4/InClassExercise4/InClassExercise4.vcxproj b/InClassExercise4/InClassExercise4/InClassExercise4.vcxproj
index e739e3d..9ab2cca 100644
--- a/InClassExercise4/InClassExercise4/InClassExercise4.vcxproj
+++ b/InClassExercise4/InClassExercise4/InClassExercise4.vcxproj
@@ -17,7 +17,6 @@
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
-
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>17.0</VCProjectVersion>
@@ -53,27 +52,24 @@
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
-
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
- <ImportGroup Label="Shared" >
+ <ImportGroup Label="Shared">
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
-
<PropertyGroup Label="UserMacros" />
-
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
@@ -130,9 +126,10 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
-
- <ItemGroup></ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="source.cpp" />
+ </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
-</Project>
+</Project> \ No newline at end of file
diff --git a/InClassExercise4/InClassExercise4/InClassExercise4.vcxproj.filters b/InClassExercise4/InClassExercise4/InClassExercise4.vcxproj.filters
index a8a6563..cb4ff3a 100644
--- a/InClassExercise4/InClassExercise4/InClassExercise4.vcxproj.filters
+++ b/InClassExercise4/InClassExercise4/InClassExercise4.vcxproj.filters
@@ -14,4 +14,9 @@
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="source.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ </ItemGroup>
</Project> \ No newline at end of file
diff --git a/InClassExercise4/InClassExercise4/source.cpp b/InClassExercise4/InClassExercise4/source.cpp
index e69de29..8c41567 100644
--- a/InClassExercise4/InClassExercise4/source.cpp
+++ b/InClassExercise4/InClassExercise4/source.cpp
@@ -0,0 +1,60 @@
+// Name: Yana Blashchishina
+// Date: 01/19/24
+//Class: CST116
+// Assignment: InClass Exercise 4
+
+#include <iostream>
+
+
+using std::cout;
+using std::cin;
+using std::endl;
+
+
+int main()
+{
+ cout << "Please input a number: ";
+
+ int i = 0;
+
+ cin >> i;
+
+ switch (i)
+ {
+ case 100:
+ cout << "You are so amazing" << endl;
+ break;
+
+ case 5:
+ cout << "You picked " << i << endl;
+ break;
+ case 21:
+ int j;
+ int k;
+ cout << "Input first number: ";
+ cin >> j;
+ cout << "Input second number: ";
+ cin >> k;
+ if (k == 0)
+ {
+ cout << "Cannot divive by zero" << endl;
+ break;
+ }
+ int g;
+ g = j% k;
+ cout << " The remainder of " << j << "divided by " << k << " is " << g << endl;
+ break;
+
+ default:
+ cout << "Bad input, no switches to switch";
+ break;
+
+
+ }
+
+
+
+
+
+ return 0;
+} \ No newline at end of file