2014-12-07から1日間の記事一覧
Boost String Algorithms ライブラリを使って指定した文字を削除する。 サンプルは視認しやすくするため、全角スペースをアンダースコアに置換しています。 #include <iostream> #include <boost/algorithm/string.hpp> using namespace std; using namespace boost; int main() { string s1 = " _</boost/algorithm/string.hpp></iostream>…