diff options
Diffstat (limited to 'mhello/hello.cxx')
-rw-r--r-- | mhello/hello.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
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 <name>..." << endl; + return 1; + } + + using hello::say; + + for (int i (1); i != argc; ++i) + say (argv[i]); +} |