summaryrefslogtreecommitdiff
path: root/hello/hello.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-06-19 18:25:43 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-06-19 18:25:43 +0300
commit8bb21cfef3955e42bab30ca2dd074f29be5c2c36 (patch)
tree988419a3bb68c6233792e820725c09daf5b66d3c /hello/hello.cxx
parent8f70a0a00cec8a5c72fb5bcc9a7b2b37af29736e (diff)
Move project into intermediate sub-directory
Diffstat (limited to 'hello/hello.cxx')
-rw-r--r--hello/hello.cxx22
1 files changed, 22 insertions, 0 deletions
diff --git a/hello/hello.cxx b/hello/hello.cxx
new file mode 100644
index 0000000..728af76
--- /dev/null
+++ b/hello/hello.cxx
@@ -0,0 +1,22 @@
+// file: hello.cxx -*- C++ -*-
+
+#include <iostream>
+
+#include <libhello/hello.hxx>
+
+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]);
+}