From da63d9593dde74753e7e37aac9d7d2681b9c2f62 Mon Sep 17 00:00:00 2001 From: Luke Else Date: Tue, 29 Nov 2022 21:05:35 +0000 Subject: [PATCH] Added AOC Project and created aoc2022.h --- AdventOfCode2022.sln | 31 +++++++ AdventOfCode2022.vcxproj | 143 +++++++++++++++++++++++++++++++ AdventOfCode2022.vcxproj.filters | 32 +++++++ src/aoc2022.h | 26 ++++++ src/main.cpp | 7 ++ 5 files changed, 239 insertions(+) create mode 100644 AdventOfCode2022.sln create mode 100644 AdventOfCode2022.vcxproj create mode 100644 AdventOfCode2022.vcxproj.filters create mode 100644 src/aoc2022.h create mode 100644 src/main.cpp diff --git a/AdventOfCode2022.sln b/AdventOfCode2022.sln new file mode 100644 index 0000000..cb4304f --- /dev/null +++ b/AdventOfCode2022.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33110.190 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AdventOfCode2022", "AdventOfCode2022.vcxproj", "{B41EB57A-8342-4281-88BD-03A5102BE476}" +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 + {B41EB57A-8342-4281-88BD-03A5102BE476}.Debug|x64.ActiveCfg = Debug|x64 + {B41EB57A-8342-4281-88BD-03A5102BE476}.Debug|x64.Build.0 = Debug|x64 + {B41EB57A-8342-4281-88BD-03A5102BE476}.Debug|x86.ActiveCfg = Debug|Win32 + {B41EB57A-8342-4281-88BD-03A5102BE476}.Debug|x86.Build.0 = Debug|Win32 + {B41EB57A-8342-4281-88BD-03A5102BE476}.Release|x64.ActiveCfg = Release|x64 + {B41EB57A-8342-4281-88BD-03A5102BE476}.Release|x64.Build.0 = Release|x64 + {B41EB57A-8342-4281-88BD-03A5102BE476}.Release|x86.ActiveCfg = Release|Win32 + {B41EB57A-8342-4281-88BD-03A5102BE476}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {DCC2E87F-AE52-4CF6-AE3D-21768ABA771B} + EndGlobalSection +EndGlobal diff --git a/AdventOfCode2022.vcxproj b/AdventOfCode2022.vcxproj new file mode 100644 index 0000000..974ec14 --- /dev/null +++ b/AdventOfCode2022.vcxproj @@ -0,0 +1,143 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {b41eb57a-8342-4281-88bd-03a5102be476} + AdventOfCode2022 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AdventOfCode2022.vcxproj.filters b/AdventOfCode2022.vcxproj.filters new file mode 100644 index 0000000..4173ad4 --- /dev/null +++ b/AdventOfCode2022.vcxproj.filters @@ -0,0 +1,32 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + + + Header Files + + + + + + + + \ No newline at end of file diff --git a/src/aoc2022.h b/src/aoc2022.h new file mode 100644 index 0000000..2c9a62d --- /dev/null +++ b/src/aoc2022.h @@ -0,0 +1,26 @@ +#pragma once +#include + +template +struct SDay { + std::string name; + std::ifstream input; + + //Constructor and Destructor + SDay(std::string); + ~SDay(); + + virtual Output part1() const {}; + virtual Output part2() const {}; +}; + +template +SDay::SDay(std::string name) { + input.open("input/" + name, std::ios::in); +} + +template +SDay::~SDay() { + input.close(); +} + diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..584fab8 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,7 @@ +#include "aoc2022.h" +#include +#include + +int main() { + +} \ No newline at end of file