c++string中的字串

功能描述:
从字符串中获取想要的子串
函数原型:
string substr(int pos = 0, int n = npos) const; //返回由pos开始的n个字符组成的字符串
posted @ 2022-05-08 15:20  纸包鱼  阅读(29)  评论(0)    收藏  举报