From 5b8a01401344400a3278d774bef86a08e12005b0 Mon Sep 17 00:00:00 2001 From: Guus Waals <_@guusw.nl> Date: Sun, 25 May 2025 15:47:35 +0800 Subject: [PATCH] Creating file test.cpp --- tooling/test.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tooling/test.cpp diff --git a/tooling/test.cpp b/tooling/test.cpp new file mode 100644 index 00000000..83ec1e61 --- /dev/null +++ b/tooling/test.cpp @@ -0,0 +1,20 @@ +#include + +int add(int a, int b) { + return a + b; +} + +void greet(const std::string& name) { + std::cout << "Hello, " << name << "!" << std::endl; +} + +int main() { + int x = 5; + int y = 10; + int result = add(x, y); + + greet("World"); + + std::cout << "Result: " << result << std::endl; + return 0; +} \ No newline at end of file