From 627991f892f431988c6a683b1305aee5510920dd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 19 Jan 2016 13:32:30 +0200 Subject: Basic "Hello World" C++ library with build2 --- hello/hello.cxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 hello/hello.cxx (limited to 'hello/hello.cxx') 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 + +#include + +using namespace std; + +namespace hello +{ + void + say (const string& n) + { + cout << "Hello, " << n << '!' << endl; + } +} -- cgit v1.1