해당 사이트 참조 : http://danielkummer.github.io/git-flow-cheatsheet/index.ko_KR.ht...
2015년 11월 18일 수요일
2015년 11월 17일 화요일
c++ string replace all
#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main()
{
cout << "Hello World" << endl;
string str = "ab0cd0e0fg";
replace_if(str.begin(),str.end(),bind2nd(equal_to<char>(),char('0')),char('-'));
cout << str << endl;
return 0;
}
output:
...