From e89b1ff2a43ea2934506bfc3eea5f49002a767bb Mon Sep 17 00:00:00 2001 From: hasslesstech Date: Mon, 14 Oct 2024 14:10:17 +0300 Subject: [PATCH] add source code of this project --- lib/printer.cpp | 6 ++++++ lib/printer.h | 1 + src/main.cpp | 9 +++++++++ 3 files changed, 16 insertions(+) create mode 100644 lib/printer.cpp create mode 100644 lib/printer.h create mode 100644 src/main.cpp diff --git a/lib/printer.cpp b/lib/printer.cpp new file mode 100644 index 0000000..d17b537 --- /dev/null +++ b/lib/printer.cpp @@ -0,0 +1,6 @@ +#include + +void print(std::string text) +{ + std::cout << text; +} diff --git a/lib/printer.h b/lib/printer.h new file mode 100644 index 0000000..7ba59e0 --- /dev/null +++ b/lib/printer.h @@ -0,0 +1 @@ +void print(std::string text); diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..5394312 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,9 @@ +#include +#include "printer.h" +using namespace std; + +int main(int argc, char** argv) +{ + print("Test"); + return 0; +}