diff options
Diffstat (limited to 'hello.cxx')
-rw-r--r-- | hello.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/hello.cxx b/hello.cxx new file mode 100644 index 0000000..fad8a40 --- /dev/null +++ b/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; +} |