From fd32b85554d3bfbafa7af58ba7975b813d655df0 Mon Sep 17 00:00:00 2001 From: Bent Witthold Date: Thu, 2 Oct 2025 13:42:13 +0200 Subject: [PATCH] Added some console outputs to use library. --- genericcore.cpp | 18 +++++++++++++++++- genericcore.h | 3 +++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/genericcore.cpp b/genericcore.cpp index 4a5e0e2..86bd5c0 100644 --- a/genericcore.cpp +++ b/genericcore.cpp @@ -1,3 +1,19 @@ #include "genericcore.h" -GenericCore::GenericCore() {} +#include +using namespace std; + +GenericCore::GenericCore() +{ + cout << "Creating core..." << endl; +} + +GenericCore::~GenericCore() +{ + cout << "Destroying core..." << endl; +} + +void GenericCore::sayHello() const +{ + cout << "Hello from the core!" << endl; +} diff --git a/genericcore.h b/genericcore.h index 845b0dd..ba48812 100644 --- a/genericcore.h +++ b/genericcore.h @@ -5,6 +5,9 @@ class GenericCore { public: GenericCore(); + ~GenericCore(); + + void sayHello() const; }; #endif // GENERICCORE_H