c++学习笔记---string中replace函数的使用

 /*  * 去掉源字符串中全部子字符串“AB”  */ #include <iostream> #include <string>ios using namespace std;算法 int main(int argc,char * argv) {    string src = "ABHelloAB ABWordAB";  string  ReStr("AB");  int index = -
相关文章
相关标签/搜索