diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-19 13:32:30 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-19 13:32:30 +0200 |
commit | 627991f892f431988c6a683b1305aee5510920dd (patch) | |
tree | abb7f8e670cce67b96d930c73f6d548b126429a6 /hello/hello.cxx |
Basic "Hello World" C++ library with build2
Diffstat (limited to 'hello/hello.cxx')
-rw-r--r-- | hello/hello.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/hello/hello.cxx b/hello/hello.cxx new file mode 100644 index 0000000..65d0aa7 --- /dev/null +++ b/hello/hello.cxx @@ -0,0 +1,16 @@ +// file: hello/hello.cxx -*- C++ -*- + +#include <hello/hello> + +#include <iostream> + +using namespace std; + +namespace hello +{ + void + say (const string& n) + { + cout << "Hello, " << n << '!' << endl; + } +} |