diff options
Diffstat (limited to 'Hello World')
3 files changed, 104 insertions, 20 deletions
diff --git a/Hello World/Homework1/Homework1ReeceWarner/Homework1ReeceWarner/Homework1ReeceWarner.vcxproj b/Hello World/Homework1/Homework1ReeceWarner/Homework1ReeceWarner/Homework1ReeceWarner.vcxproj index 999c1e8..7197db6 100644 --- a/Hello World/Homework1/Homework1ReeceWarner/Homework1ReeceWarner/Homework1ReeceWarner.vcxproj +++ b/Hello World/Homework1/Homework1ReeceWarner/Homework1ReeceWarner/Homework1ReeceWarner.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/Hello World/Homework1/Homework1ReeceWarner/Homework1ReeceWarner/Homework1ReeceWarner.vcxproj.filters b/Hello World/Homework1/Homework1ReeceWarner/Homework1ReeceWarner/Homework1ReeceWarner.vcxproj.filters index a8a6563..3e7e62e 100644 --- a/Hello World/Homework1/Homework1ReeceWarner/Homework1ReeceWarner/Homework1ReeceWarner.vcxproj.filters +++ b/Hello World/Homework1/Homework1ReeceWarner/Homework1ReeceWarner/Homework1ReeceWarner.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/Hello World/Homework1/Homework1ReeceWarner/Homework1ReeceWarner/Source.cpp b/Hello World/Homework1/Homework1ReeceWarner/Homework1ReeceWarner/Source.cpp index e69de29..6722728 100644 --- a/Hello World/Homework1/Homework1ReeceWarner/Homework1ReeceWarner/Source.cpp +++ b/Hello World/Homework1/Homework1ReeceWarner/Homework1ReeceWarner/Source.cpp @@ -0,0 +1,82 @@ +//Name:Reece Warner +//Date:1/13/2023 +//Class:CST116 +//Homework#1 + +#include <iostream> +using std::cout; +using std::cin; +using std::endl; +int alpha; +int beta; +int theta; +const int PHI = 1024; + +enum date{day, month, year=2024}; +union datevalues +{ + int d; + int m; + int y = 2024; +}; +typedef struct whenisit +{ + date day; + datevalues d; + date month; + datevalues m; + date year; + datevalues y; +}; + + + +int main() +{ + cout << "Give me a number please:)\n\n\n"; + cin >> alpha; + cout << "Give me another please:)\n\n\n"; + cin >> beta; + cout << "One more please:)\n\n\n"; + cin >> theta; + cout << "Here is your sum:\n\n\n" + << alpha + beta + theta << endl + << "Do you want to see your product\n\n\n" + << alpha * beta * theta << endl + << "What about the difference of your sum and a constant?\n\n\n" + << alpha + beta + theta - PHI << endl + << "What about the difference of your product and a constant?\n\n\n" + << alpha * beta * theta - PHI << endl; + + //just some practice for fun:) + int year; + cout << "what year is it?" << endl; + cin >> year; + + switch (year) + { + + case 2024: + cout << "You're right! it is : " << year<< endl; + break; + + case 2023: + cout << "I am sorry that's not the year:(" << endl; + break; + + case 2022: + cout << "That isn't 2024:(, but sometimes I live in the past too" << endl; + break; + + case 2025: + cout << "Maybe you're time traveling" << endl; + break; + default: + cout << "Bad input, how could you:((" << endl; + break; + + } + + + return 0; +}
\ No newline at end of file |