uibk_703807-Advanced-CXX/exercises/task01/hello_boost.cpp

12 lines
221 B
C++
Raw Normal View History

2020-10-06 12:34:06 +02:00
#include <iostream>
#include <boost/algorithm/string/replace.hpp>
int main()
{
std::string s = "foo bar";
boost::replace_all(s, "foo", "Hello");
boost::replace_all(s, "bar", "World");
std::cout << s << std::endl;
}