1
0

27_helloworld.cpp 290 B

123456789101112131415
  1. #include <boost/algorithm/string.hpp>
  2. #include <iostream>
  3. #include <string>
  4. using namespace boost::algorithm;
  5. using namespace std;
  6. int main()
  7. {
  8. string hwmod = " Hell0, w0rld! ";
  9. string tmp = replace_all_copy(hwmod, "0", "o");
  10. tmp = trim_copy(tmp);
  11. cout << tmp << endl;
  12. return 0;
  13. }