diff options
| author | Chanin Timbal <[email protected]> | 2024-06-01 11:49:52 -0700 |
|---|---|---|
| committer | Chanin Timbal <[email protected]> | 2024-06-01 11:49:52 -0700 |
| commit | ee299e40737932350f6b4b48a7380e2645089d45 (patch) | |
| tree | c33e828baa1951790771f05b051e912452302a5b /CST 126/Homework 2/Homework2 | |
| parent | Merge branch 'develop' of https://github.com/OIT-WI-2024/homework-1-chaninnoh... (diff) | |
| download | homework-1-chaninnohea-ee299e40737932350f6b4b48a7380e2645089d45.tar.xz homework-1-chaninnohea-ee299e40737932350f6b4b48a7380e2645089d45.zip | |
attempting rebuild
Diffstat (limited to 'CST 126/Homework 2/Homework2')
| -rw-r--r-- | CST 126/Homework 2/Homework2/Homework2.sln | 31 | ||||
| -rw-r--r-- | CST 126/Homework 2/Homework2/Homework2.vcxproj | 145 | ||||
| -rw-r--r-- | CST 126/Homework 2/Homework2/Homework2.vcxproj.filters | 40 | ||||
| -rw-r--r-- | CST 126/Homework 2/Homework2/program.cpp | 70 |
4 files changed, 0 insertions, 286 deletions
diff --git a/CST 126/Homework 2/Homework2/Homework2.sln b/CST 126/Homework 2/Homework2/Homework2.sln deleted file mode 100644 index 487680b..0000000 --- a/CST 126/Homework 2/Homework2/Homework2.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.9.34723.18 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Homework2", "Homework2.vcxproj", "{D98B5865-9F6A-4BB6-8443-3C88F9825603}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D98B5865-9F6A-4BB6-8443-3C88F9825603}.Debug|x64.ActiveCfg = Debug|x64 - {D98B5865-9F6A-4BB6-8443-3C88F9825603}.Debug|x64.Build.0 = Debug|x64 - {D98B5865-9F6A-4BB6-8443-3C88F9825603}.Debug|x86.ActiveCfg = Debug|Win32 - {D98B5865-9F6A-4BB6-8443-3C88F9825603}.Debug|x86.Build.0 = Debug|Win32 - {D98B5865-9F6A-4BB6-8443-3C88F9825603}.Release|x64.ActiveCfg = Release|x64 - {D98B5865-9F6A-4BB6-8443-3C88F9825603}.Release|x64.Build.0 = Release|x64 - {D98B5865-9F6A-4BB6-8443-3C88F9825603}.Release|x86.ActiveCfg = Release|Win32 - {D98B5865-9F6A-4BB6-8443-3C88F9825603}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {1A5DF82F-23DD-44E7-A5EB-9BCB8146727A} - EndGlobalSection -EndGlobal diff --git a/CST 126/Homework 2/Homework2/Homework2.vcxproj b/CST 126/Homework 2/Homework2/Homework2.vcxproj deleted file mode 100644 index 6ecd492..0000000 --- a/CST 126/Homework 2/Homework2/Homework2.vcxproj +++ /dev/null @@ -1,145 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup Label="ProjectConfigurations"> - <ProjectConfiguration Include="Debug|Win32"> - <Configuration>Debug</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|Win32"> - <Configuration>Release</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Debug|x64"> - <Configuration>Debug</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|x64"> - <Configuration>Release</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - </ItemGroup> - <PropertyGroup Label="Globals"> - <VCProjectVersion>17.0</VCProjectVersion> - <Keyword>Win32Proj</Keyword> - <ProjectGuid>{d98b5865-9f6a-4bb6-8443-3c88f9825603}</ProjectGuid> - <RootNamespace>Homework2</RootNamespace> - <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> - <ConfigurationType>Application</ConfigurationType> - <UseDebugLibraries>true</UseDebugLibraries> - <PlatformToolset>v143</PlatformToolset> - <CharacterSet>Unicode</CharacterSet> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> - <ConfigurationType>Application</ConfigurationType> - <UseDebugLibraries>false</UseDebugLibraries> - <PlatformToolset>v143</PlatformToolset> - <WholeProgramOptimization>true</WholeProgramOptimization> - <CharacterSet>Unicode</CharacterSet> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> - <ConfigurationType>Application</ConfigurationType> - <UseDebugLibraries>true</UseDebugLibraries> - <PlatformToolset>v143</PlatformToolset> - <CharacterSet>Unicode</CharacterSet> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> - <ConfigurationType>Application</ConfigurationType> - <UseDebugLibraries>false</UseDebugLibraries> - <PlatformToolset>v143</PlatformToolset> - <WholeProgramOptimization>true</WholeProgramOptimization> - <CharacterSet>Unicode</CharacterSet> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> - <ImportGroup Label="ExtensionSettings"> - </ImportGroup> - <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> - <PropertyGroup Label="UserMacros" /> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> - <ClCompile> - <WarningLevel>Level3</WarningLevel> - <SDLCheck>true</SDLCheck> - <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <ConformanceMode>true</ConformanceMode> - </ClCompile> - <Link> - <SubSystem>Console</SubSystem> - <GenerateDebugInformation>true</GenerateDebugInformation> - </Link> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <ClCompile> - <WarningLevel>Level3</WarningLevel> - <FunctionLevelLinking>true</FunctionLevelLinking> - <IntrinsicFunctions>true</IntrinsicFunctions> - <SDLCheck>true</SDLCheck> - <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <ConformanceMode>true</ConformanceMode> - </ClCompile> - <Link> - <SubSystem>Console</SubSystem> - <EnableCOMDATFolding>true</EnableCOMDATFolding> - <OptimizeReferences>true</OptimizeReferences> - <GenerateDebugInformation>true</GenerateDebugInformation> - </Link> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <ClCompile> - <WarningLevel>Level3</WarningLevel> - <SDLCheck>true</SDLCheck> - <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <ConformanceMode>true</ConformanceMode> - </ClCompile> - <Link> - <SubSystem>Console</SubSystem> - <GenerateDebugInformation>true</GenerateDebugInformation> - </Link> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <ClCompile> - <WarningLevel>Level3</WarningLevel> - <FunctionLevelLinking>true</FunctionLevelLinking> - <IntrinsicFunctions>true</IntrinsicFunctions> - <SDLCheck>true</SDLCheck> - <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <ConformanceMode>true</ConformanceMode> - </ClCompile> - <Link> - <SubSystem>Console</SubSystem> - <EnableCOMDATFolding>true</EnableCOMDATFolding> - <OptimizeReferences>true</OptimizeReferences> - <GenerateDebugInformation>true</GenerateDebugInformation> - </Link> - </ItemDefinitionGroup> - <ItemGroup> - <ClCompile Include="program.cpp" /> - </ItemGroup> - <ItemGroup> - <None Include="..\..\..\..\FindingPi.exe" /> - </ItemGroup> - <ItemGroup> - <Text Include="destination_file.txt" /> - </ItemGroup> - <ItemGroup> - <ClInclude Include="Base64Converter.hpp" /> - <ClInclude Include="helpers.hpp" /> - </ItemGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> - <ImportGroup Label="ExtensionTargets"> - </ImportGroup> -</Project>
\ No newline at end of file diff --git a/CST 126/Homework 2/Homework2/Homework2.vcxproj.filters b/CST 126/Homework 2/Homework2/Homework2.vcxproj.filters deleted file mode 100644 index f608380..0000000 --- a/CST 126/Homework 2/Homework2/Homework2.vcxproj.filters +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup> - <Filter Include="Source Files"> - <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> - <Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions> - </Filter> - <Filter Include="Header Files"> - <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> - <Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions> - </Filter> - <Filter Include="Resource Files"> - <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> - <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="program.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - </ItemGroup> - <ItemGroup> - <None Include="..\..\..\..\FindingPi.exe"> - <Filter>Source Files</Filter> - </None> - </ItemGroup> - <ItemGroup> - <Text Include="destination_file.txt"> - <Filter>Source Files</Filter> - </Text> - </ItemGroup> - <ItemGroup> - <ClInclude Include="helpers.hpp"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="Base64Converter.hpp"> - <Filter>Header Files</Filter> - </ClInclude> - </ItemGroup> -</Project>
\ No newline at end of file diff --git a/CST 126/Homework 2/Homework2/program.cpp b/CST 126/Homework 2/Homework2/program.cpp deleted file mode 100644 index 158a2be..0000000 --- a/CST 126/Homework 2/Homework2/program.cpp +++ /dev/null @@ -1,70 +0,0 @@ -//Chanin Timbal -//Homework 2 -//27 April 2024 - -#include <iostream> - -#include "helpers.hpp" -#include "Base64Converter.hpp" - -constexpr short ARG_COUNT = 4; - -bool Worker(); -bool Worker(char** argv); - - - -int main(const int argc, char* argv[]) -{ - if (argc == ARG_COUNT) - { - //run the command line version - Worker(argv); - } - return Worker(); -} - -bool Worker() -{ -} - -bool Worker(char** argv) -{ - const char* arg1 = argv[1]; //-e -d - const char* arg2 = argv[2]; //source file name - const char* arg3 = argv[3]; //destination file name - - const char option = arg1[1]; //e or d - - switch (option) - { - case 'e': - //file reading binary - char* buffer = new char[1]; - - buffer = ReadFileAsBinary(arg2, buffer); - //endcoding work - - bool success = WriteTextToFile(arg3, buffer); - - delete[] buffer; - - return success; - case 'd': - //file reading text - //decoding work - //file writing binary - return true; - default: - std::cerr << "Invalid command option\n" << - "Valid commands:\n" << - "\t-e source_file.exe destination_file.exe" << - "\t\tEncodes file in source into text in destination txt file." << - "\t-d source_file.txt destination file.exe" << - "\t\tDecodes text in source file into the destination file.\n\n"; - return false; - } - - - return false; -}
\ No newline at end of file |