Starter code for Advent of Code for C++
Before you start installing things, check what you have:
> gcc --version
> cmake --version
You only have to run this once:
scripts/gen.sh
Prepare a problem for a day with:
scripts/prepare.sh [day_number]
This will create a src/day_X.cpp
file where you will solve problem from day X
.
It will create a input/day_X
file where you will manually paste your input that you get in the bottom of problem description.
Run a problem with:
scripts/run.sh [day_number]
├───.build # CMake will generate and build the project here
├───.vscode # Contains tasks and recommended extensions
├───cmake # Contains autogenerated cmake files for the problems
├───scripts # Contains all the scripts
├───input # Contains all input files
└───src # Contains all the source cpp files with your code