From 1ae3f97f48b44488a2f70441e86a67bec8ba1177 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 22 Jan 2016 10:28:37 +0200 Subject: Use libformat and libprint to be more enterprise-grade and web-scale --- hello/hello.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'hello/hello.cxx') diff --git a/hello/hello.cxx b/hello/hello.cxx index 65d0aa7..46d9f6e 100644 --- a/hello/hello.cxx +++ b/hello/hello.cxx @@ -2,7 +2,8 @@ #include -#include +#include +#include using namespace std; @@ -11,6 +12,6 @@ namespace hello void say (const string& n) { - cout << "Hello, " << n << '!' << endl; + print (format ("Hello", n)); } } -- cgit v1.1