From b143a9a119d410b8fcaf793aef9d2d38f41e0d65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Wed, 1 May 2024 15:22:59 +0200 Subject: [PATCH] implement lesson02 --- main.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 320a23f..580bd88 100755 --- a/main.cpp +++ b/main.cpp @@ -3,6 +3,7 @@ #include #include "components/Point.h" +#include "components/Snack.h" #include "input-output/Graphics.h" void mainL01() { @@ -17,7 +18,20 @@ void mainL01() { std::cout << "Helper QUIT" << std::endl; } +void mainL02() { + Graphics::get().init("Learners Helper 02"); + + Point p(10,10); + generateSnack(&p); + + std::this_thread::sleep_for(std::chrono::seconds(10)); + + Graphics::get().finalize(); + + std::cout << "Helper QUIT" << std::endl; +} + int main() { - mainL01(); + mainL02(); return 0; } \ No newline at end of file