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; }
1
勤労の日