From 9d20ba45831e60f2146b1a338866d59bb81dc362 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 20 Jul 2017 08:55:11 +0200 Subject: Add modularized version --- mhello/hello.cxx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 mhello/hello.cxx (limited to 'mhello/hello.cxx') diff --git a/mhello/hello.cxx b/mhello/hello.cxx new file mode 100644 index 0000000..7aa6c8a --- /dev/null +++ b/mhello/hello.cxx @@ -0,0 +1,22 @@ +// file: hello.cxx -*- C++ -*- + +import std.core; +import std.io; +import hello; + +using namespace std; + +int +main (int argc, char* argv[]) +{ + if (argc < 2) + { + cerr << "usage: hello ..." << endl; + return 1; + } + + using hello::say; + + for (int i (1); i != argc; ++i) + say (argv[i]); +} -- cgit v1.1