摘要: //将一个字符串中的特定字符(串)替换成另一个字符(串)void repalce_all_ditinct(string& str,const string& old_value,const string& new_value){for(string::size_type pos(0);pos!=string::npos;pos+=new_value.length()) {if((pos=str.find(old_value,pos))!=string::npos)str.replace(pos,old_value.length(),new_value);else bre 阅读全文
posted @ 2014-03-26 20:30 nothon 阅读(7602) 评论(0) 推荐(0)