From 5fd685cc5596474ff3b17e79b0aa59c75974401a Mon Sep 17 00:00:00 2001 From: Stedd Date: Sun, 1 Dec 2024 12:09:27 +0100 Subject: [PATCH] first run structure --- days/day01.cpp | 8 ++++++++ days/day01.h | 8 ++++---- main.cpp | 8 +++++--- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/days/day01.cpp b/days/day01.cpp index fe8c3fa..02f875a 100644 --- a/days/day01.cpp +++ b/days/day01.cpp @@ -3,3 +3,11 @@ // #include "day01.h" + +#include +#include + +void day01::Run() +{ + std::cout << "Day 01" << std::endl; +} diff --git a/days/day01.h b/days/day01.h index 002b776..f55f5cb 100644 --- a/days/day01.h +++ b/days/day01.h @@ -6,11 +6,11 @@ #define DAY01_H - -class day01 { - +class day01 +{ +public: + static void Run(); }; - #endif //DAY01_H diff --git a/main.cpp b/main.cpp index f2f5c95..24fb6e7 100644 --- a/main.cpp +++ b/main.cpp @@ -1,7 +1,9 @@ #include +#include "days/day01.h" + int main() { - std::cout << "Hello, World!" << std::endl; - return 0; -} \ No newline at end of file +day01 day01; + day01.Run(); +}