aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Hello World/Hello World.sln10
-rw-r--r--Homework 1/Homework 1.vcxproj37
-rw-r--r--Homework 1/Homework 1.vcxproj.filters5
-rw-r--r--Homework 1/Homework__1.cpp73
4 files changed, 105 insertions, 20 deletions
diff --git a/Hello World/Hello World.sln b/Hello World/Hello World.sln
index c88defd..fd33f5f 100644
--- a/Hello World/Hello World.sln
+++ b/Hello World/Hello World.sln
@@ -5,6 +5,8 @@ VisualStudioVersion = 17.7.34031.279
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Hello World", "Hello World\Hello World.vcxproj", "{3AF90EB9-4E0A-4A02-A83B-F4531C6041D1}"
EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Homework 1", "..\Homework 1\Homework 1.vcxproj", "{C31B044D-4CD3-4C68-8361-FA77F5F06170}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
@@ -21,6 +23,14 @@ Global
{3AF90EB9-4E0A-4A02-A83B-F4531C6041D1}.Release|x64.Build.0 = Release|x64
{3AF90EB9-4E0A-4A02-A83B-F4531C6041D1}.Release|x86.ActiveCfg = Release|Win32
{3AF90EB9-4E0A-4A02-A83B-F4531C6041D1}.Release|x86.Build.0 = Release|Win32
+ {C31B044D-4CD3-4C68-8361-FA77F5F06170}.Debug|x64.ActiveCfg = Debug|x64
+ {C31B044D-4CD3-4C68-8361-FA77F5F06170}.Debug|x64.Build.0 = Debug|x64
+ {C31B044D-4CD3-4C68-8361-FA77F5F06170}.Debug|x86.ActiveCfg = Debug|Win32
+ {C31B044D-4CD3-4C68-8361-FA77F5F06170}.Debug|x86.Build.0 = Debug|Win32
+ {C31B044D-4CD3-4C68-8361-FA77F5F06170}.Release|x64.ActiveCfg = Release|x64
+ {C31B044D-4CD3-4C68-8361-FA77F5F06170}.Release|x64.Build.0 = Release|x64
+ {C31B044D-4CD3-4C68-8361-FA77F5F06170}.Release|x86.ActiveCfg = Release|Win32
+ {C31B044D-4CD3-4C68-8361-FA77F5F06170}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/Homework 1/Homework 1.vcxproj b/Homework 1/Homework 1.vcxproj
index bd3e308..9b9bc22 100644
--- a/Homework 1/Homework 1.vcxproj
+++ b/Homework 1/Homework 1.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="Homework__1.cpp" />
+ </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
-</Project>
+</Project> \ No newline at end of file
diff --git a/Homework 1/Homework 1.vcxproj.filters b/Homework 1/Homework 1.vcxproj.filters
index a8a6563..535cf9f 100644
--- a/Homework 1/Homework 1.vcxproj.filters
+++ b/Homework 1/Homework 1.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="Homework__1.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ </ItemGroup>
</Project> \ No newline at end of file
diff --git a/Homework 1/Homework__1.cpp b/Homework 1/Homework__1.cpp
index e69de29..cf710eb 100644
--- a/Homework 1/Homework__1.cpp
+++ b/Homework 1/Homework__1.cpp
@@ -0,0 +1,73 @@
+// Name: Nataliia Brown
+// Date: 1/14/24
+// Class: CST 116
+// Assignment: Homework 1
+
+
+#include <iostream>
+
+using namespace std;
+using std::cout;
+using std::cin;
+using std::endl;
+
+int main()
+{
+ int a;
+
+ int b;
+
+ int c;
+
+ const int K = 1024;
+
+ cout << "Input first integer: " << endl;
+
+ cin >> a;
+
+ cout << "Input second integer: " << endl;
+
+ cin >> b;
+
+ cout << "Input third integer: " << endl;
+
+ cin >> c;
+
+
+ int my_sum = a + b + c;
+ int my_product = a * b* c;
+
+ cout << "The sum of all three variables is: " << my_sum << " and the multiplied value of all three variables is: " << a * b * c << endl;
+
+ cout << "The difference between the sum and const is: " << my_sum - K << endl;
+ cout << "The difference between the mult and const is: " << my_product - K << endl;
+
+ enum myItems {
+ item1,
+ item2,
+ item3
+ };
+
+ union myUnion {
+ int number_1;
+ int number_2;
+ int number_3;
+ };
+
+ struct myStruct {
+ enum myOtherItems { other1, other2, other3 };
+ union myOtherUnion {
+ int other_1;
+ int other_2;
+ int other_3;
+ };
+ };
+
+ typedef struct newStruct {
+ int x;
+ int y;
+ int z;
+ }st_xyz;
+
+ return 0;
+} \ No newline at end of file