热门标签
更多>
搜索结果
查询Tags标签: strRet,共有 2条记录-
c++字符串替换
#include <string> #include <iostream>using namespace std;string m_replace(string strSrc,const string &oldStr, const string &newStr,int count=-1) {string strRet=strSrc;size_t pos = 0;int l_count=0;if(-1 == count) // replace allcount…
2021/11/20 20:40:11 人评论 次浏览 -
c++字符串替换
#include <string> #include <iostream>using namespace std;string m_replace(string strSrc,const string &oldStr, const string &newStr,int count=-1) {string strRet=strSrc;size_t pos = 0;int l_count=0;if(-1 == count) // replace allcount…
2021/11/20 20:40:11 人评论 次浏览