摘要: #include <iostream> #include <string.h> using namespace std; int main() { string s="abcdefg"; string s1=s.substr(2,6);//s1为字符串s起始位置为2,长度为6的一段字符串,注意s的位 阅读全文
posted @ 2020-02-20 21:22 词不达意。 阅读(174) 评论(0) 推荐(0) 编辑