[转]C++中常用的方法
原文链接:https://blog.csdn.net/weixin_44635198/article/details/104464807
一、string的用法
(一、插入)insert的使用
(二、删除)erase的使用
(三、查找)find的使用
(四、替换)replace的使用
(五、截取)substr的使用
(六、追加)append与push_back的使用
二、getline的一系列操作用法(换行)
有cin.get(),getline(),,cin.getline(),
istringstream,ostringstream,stringstream
三、字符串和数字类型的转换
四、vector的使用
(一)vector的创建
(二)vector的插入
(三)vector的删除
(四)vector的遍历与访问
(五)vector的其他函数
五、map的使用
(一)map的创建与遍历
(二)map的插入
(三)map的查找
(四)map的删除
(五)map的排序
(六)map取消key的自动排序