summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-07-24 13:32:16 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2023-07-24 13:32:16 +0200
commit2f158e9e5f50ead79937d60d1b861385ab0c9f0a (patch)
treeb780fbf321d42bea562e48374dad413866b1d1d6
A1: Simple hello world
-rw-r--r--a1/Makefile3
-rw-r--r--a1/hello.cc6
2 files changed, 9 insertions, 0 deletions
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 <iostream>;
+
+int main()
+{
+ std::cout << "Hello World!\n";
+}