C++ string 替換子串

代碼:ios #include <iostream> #include <windows.h> #include <string> using namespace std; int main() { string s = "abc123def"; s.replace( s.find("123"), // 被替換的位置 3, // 被替換的大小 "" // 用來
相關文章
相關標籤/搜索