aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraquelc <[email protected]>2024-01-20 12:57:36 -0800
committerraquelc <[email protected]>2024-01-20 12:57:36 -0800
commitdf54d98924639e998c85ecf23dc3063346762e56 (patch)
tree808d7b7fbb3d193f146afc9ce7a5d20423b97944
parentcreated project source.cpp (diff)
downloadin-class-exercise-3-raquel191-develop.tar.xz
in-class-exercise-3-raquel191-develop.zip
exercise 3 completedevelop
-rw-r--r--inclass-excersice3/inclass-excersice3/Source.cpp35
-rw-r--r--inclass-excersice3/inclass-excersice3/inclass-excersice3.vcxproj37
-rw-r--r--inclass-excersice3/inclass-excersice3/inclass-excersice3.vcxproj.filters5
3 files changed, 57 insertions, 20 deletions
diff --git a/inclass-excersice3/inclass-excersice3/Source.cpp b/inclass-excersice3/inclass-excersice3/Source.cpp
index e69de29..5271ed6 100644
--- a/inclass-excersice3/inclass-excersice3/Source.cpp
+++ b/inclass-excersice3/inclass-excersice3/Source.cpp
@@ -0,0 +1,35 @@
+// name: Raquel Chavez
+// Date: 1/20/24
+// class : CST 116
+// Assignment: In class excercise 3
+
+#include <iostream>
+
+using std::cout;
+using std::cin;
+using std::endl;
+
+int main()
+{
+ cout << "please enter a whole number: ";
+
+ int i = 0;
+
+ cin >> i;
+
+ if (i > 0)
+ {
+ cout << "Your number is positive " << endl;
+
+ }
+ else if (i < 0)
+ {
+ cout << "Your number is negative " << endl;
+ }
+ else
+ {
+ cout << "Your number is zero " << endl;
+ }
+
+ return 0;
+} \ No newline at end of file
diff --git a/inclass-excersice3/inclass-excersice3/inclass-excersice3.vcxproj b/inclass-excersice3/inclass-excersice3/inclass-excersice3.vcxproj
index 53396de..9bef773 100644
--- a/inclass-excersice3/inclass-excersice3/inclass-excersice3.vcxproj
+++ b/inclass-excersice3/inclass-excersice3/inclass-excersice3.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/inclass-excersice3/inclass-excersice3/inclass-excersice3.vcxproj.filters b/inclass-excersice3/inclass-excersice3/inclass-excersice3.vcxproj.filters
index a8a6563..3e7e62e 100644
--- a/inclass-excersice3/inclass-excersice3/inclass-excersice3.vcxproj.filters
+++ b/inclass-excersice3/inclass-excersice3/inclass-excersice3.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