(C++) Hello Boost
February 24, 2017 · View on GitHub
(C++)
Hello Boost
Hello Boost is an extension of Hello World. Like Hello World, Hello Boost is a simple console application. Hello Boost, however, also requires the Boost library and to link against the Boost.Regex library.
The base code of Hello Boost is:
#include <iostream> #include <boost/regex.hpp> int main() { std::string s = "Hello World"; s = boost::regex_replace(s,boost::regex("World"),std::string("Boost")); std::cout << s << '\n'; }
Here are some detailed examples of Hello Boost, depending on IDE and operating system:



'Hello Boost' using Qt Creator under
Cygwin



'Hello Boost' using (a Windows version of) Qt
Creator under Wine under
Ubuntu



'Hello Boost' using Qt Creator
under Ubuntu



'Hello Boost' using Qt Creator
under Lubuntu



'Hello Boost' using Qt Creator under Lubuntu, crosscompile to
Windows



'Hello Boost' using Qt Creator under Ubuntu for
NDS



'Hello Boost' using Qt Creator
under Windows