summaryrefslogtreecommitdiff
path: root/hello0/hello.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-06-19 18:26:34 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-06-19 18:26:34 +0300
commit60b5be3c72aaa4df1936b62ed4704b3d5abd2247 (patch)
treededf4c56e6209bb58671a1f0b2a2cc10f4f7d31d /hello0/hello.cxx
parent86f4323dcc2b0145f6ff661bcf572ea2038af3d0 (diff)
Move project into intermediate sub-directory
Diffstat (limited to 'hello0/hello.cxx')
-rw-r--r--hello0/hello.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/hello0/hello.cxx b/hello0/hello.cxx
new file mode 100644
index 0000000..fad8a40
--- /dev/null
+++ b/hello0/hello.cxx
@@ -0,0 +1,14 @@
+#include <iostream>
+
+using namespace std;
+
+int main (int argc, char* argv[])
+{
+ if (argc != 2)
+ {
+ cerr << "usage: " << argv[0] << " <name>" << endl;
+ return 1;
+ }
+
+ cout << "Hello, " << argv[1] << "!" << endl;
+}