摘要: #include<string> #include<iostream> using namespace std; int main() { string s("12345asdf"); string a = s.substr(0,5); //获得字符串s中从第0位开始的长度为5的字符串 cout < 阅读全文
posted @ 2020-07-15 10:18 为红颜 阅读(285) 评论(0) 推荐(0)