From 2f158e9e5f50ead79937d60d1b861385ab0c9f0a Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 24 Jul 2023 13:32:16 +0200 Subject: A1: Simple hello world --- a1/Makefile | 3 +++ a1/hello.cc | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 a1/Makefile create mode 100644 a1/hello.cc diff --git a/a1/Makefile b/a1/Makefile new file mode 100644 index 0000000..af4aa77 --- /dev/null +++ b/a1/Makefile @@ -0,0 +1,3 @@ +all: + g++ -std=c++20 -fmodules-ts -x c++-system-header iostream + g++ -std=c++20 -fmodules-ts hello.cc -o hello diff --git a/a1/hello.cc b/a1/hello.cc new file mode 100644 index 0000000..84d019f --- /dev/null +++ b/a1/hello.cc @@ -0,0 +1,6 @@ +import ; + +int main() +{ + std::cout << "Hello World!\n"; +} -- cgit v1.2.3