From 3626877554b6c567d43336ec49414cedfe487260 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Fri, 31 May 2024 18:30:10 +0200 Subject: Initial commit --- src/hello/hello.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/hello/hello.cpp (limited to 'src/hello/hello.cpp') diff --git a/src/hello/hello.cpp b/src/hello/hello.cpp new file mode 100644 index 0000000..0c9df99 --- /dev/null +++ b/src/hello/hello.cpp @@ -0,0 +1,11 @@ +#include + +#include +#include + +int main(int argc, char **argv) { + std::cout << fmt::format("Hello {}!", + argc > 1 ? std::string{argv[1]} : "World") + << std::endl; + return 0; +} -- cgit v1.2.3