[ create a new paste ] login | about

Link: http://codepad.org/HoCFw4QI    [ raw code | output | fork ]

hecomi - C++, pasted on Nov 22:
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
#include <string>
#include <boost/algorithm/string/erase.hpp>

int main()
{
  std::string tomorrow("勤労感謝の日");
  boost::erase_first(tomorrow, "感謝");
  std::cout << tomorrow << std::endl;
  return 0;
}


Output:
1
勤労の日


Create a new paste based on this one


Comments: