Added AOC Project and created aoc2022.h

This commit is contained in:
2022-11-29 21:05:35 +00:00
parent 5da5973b23
commit da63d9593d
5 changed files with 239 additions and 0 deletions

26
src/aoc2022.h Normal file
View File

@ -0,0 +1,26 @@
#pragma once
#include <fstream>
template <typename Output>
struct SDay {
std::string name;
std::ifstream input;
//Constructor and Destructor
SDay(std::string);
~SDay();
virtual Output part1() const {};
virtual Output part2() const {};
};
template <typename Output>
SDay<Output>::SDay(std::string name) {
input.open("input/" + name, std::ios::in);
}
template <typename Output>
SDay<Output>::~SDay() {
input.close();
}

7
src/main.cpp Normal file
View File

@ -0,0 +1,7 @@
#include "aoc2022.h"
#include <iostream>
#include <string>
int main() {
}