会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一笑为红颜
博客园
首页
新随笔
联系
订阅
管理
2020年7月15日
C++中的substr()函数
摘要: #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)
公告