aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNataliia Brown <[email protected]>2024-01-16 23:27:40 -0800
committerNataliia Brown <[email protected]>2024-01-16 23:27:40 -0800
commitcdfc5eacc178363c6f0116e103d1f037c59eb8f3 (patch)
treee552d46774249887d3daf388e0656dbd5b84ad28
parentExercise completed (diff)
downloadin-class-exercise-3-natabrown-cdfc5eacc178363c6f0116e103d1f037c59eb8f3.tar.xz
in-class-exercise-3-natabrown-cdfc5eacc178363c6f0116e103d1f037c59eb8f3.zip
Final commitHEADmain
-rw-r--r--InClassExercise3/Project1/IN-class.cpp4
-rw-r--r--InClassExercise3/Project1/Project1.vcxproj2
-rw-r--r--InClassExercise3/Project1/Project1.vcxproj.filters6
3 files changed, 10 insertions, 2 deletions
diff --git a/InClassExercise3/Project1/IN-class.cpp b/InClassExercise3/Project1/IN-class.cpp
index d2a1178..1cfc1c4 100644
--- a/InClassExercise3/Project1/IN-class.cpp
+++ b/InClassExercise3/Project1/IN-class.cpp
@@ -26,11 +26,11 @@ int main()
{
cout << "Your number is positive\n";
}
- if (i < 0)
+ else if (i < 0)
{
cout << "Your number is negative\n";
}
- else
+ else
{
cout << "Your number is zero.\n";
}
diff --git a/InClassExercise3/Project1/Project1.vcxproj b/InClassExercise3/Project1/Project1.vcxproj
index 0cbd278..5752092 100644
--- a/InClassExercise3/Project1/Project1.vcxproj
+++ b/InClassExercise3/Project1/Project1.vcxproj
@@ -127,7 +127,9 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
+ <ClCompile Include="Homework 1.cpp" />
<ClCompile Include="IN-class.cpp" />
+ <ClCompile Include="Source.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/InClassExercise3/Project1/Project1.vcxproj.filters b/InClassExercise3/Project1/Project1.vcxproj.filters
index b9155a1..3d602e1 100644
--- a/InClassExercise3/Project1/Project1.vcxproj.filters
+++ b/InClassExercise3/Project1/Project1.vcxproj.filters
@@ -18,5 +18,11 @@
<ClCompile Include="IN-class.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="Source.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="Homework 1.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
</Project> \ No newline at end of file