From f013fac528515dad78c9a624216b1e0217a5f3bb Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 22 Jan 2016 10:26:47 +0200 Subject: "Hello World" formatter C++ library with build2 --- format/format.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 format/format.cxx (limited to 'format/format.cxx') diff --git a/format/format.cxx b/format/format.cxx new file mode 100644 index 0000000..0566e78 --- /dev/null +++ b/format/format.cxx @@ -0,0 +1,11 @@ +// file: format/format.cxx -*- C++ -*- + +#include + +using namespace std; + +string +format (const string& g, const string& n) +{ + return g + ", " + n + '!'; +} -- cgit v1.1