string字符串替換

MFC中CString有Replace()函數能夠替換字符穿中全部字符的功能,而std::string卻沒有,但咱們能夠本身進行實現:ios #include <iostream> #include <string>函數 using namespace std;spa   void string_replace(string& pstr, string pstrold, string pstrne
相關文章
相關標籤/搜索