- 博客(2)
- 收藏
- 关注
原创 C++ string类的常用函数总结
本文主要用于分享并记录一些string的常用函数每一个函数都有详细的注释辅助理解#include <iostream>#include <string>using namespace std;int main(){ string a = "abcdefgh"; string b; int n = a.size(); cout << "字符串a的长度为:" << n << endl; //判...
2022-01-24 22:05:25 385
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人