小工具知识网

当前位置: 首页 > 行业知识 > 【STL】string类 (下)

行业知识

【STL】string类 (下)

2026-12-03 01:07:34 来源:互联网转载

���录

1,insert

2,erase

3,find

4,replace

5,rfind

6,substr

7,find_first_of

8,find_first_not_of

9,find_last_of

10,operator+

11,getline


1,insert

在 pos 位置之前插入字符串

#include#includeusing namespace std;int main(){string s1("hello world");s1.insert(0, "xx");cout 

上一篇:怎么做交易猫钓鱼网站?

下一篇:轻松获取音乐资源,音乐软件下载教程