会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
创造型快乐or享受型
假如我们突然被消灭了……我们有权利说,我们已经把命运给予我们的时间完全用于……
博客园
首页
新随笔
联系
订阅
管理
2020年3月23日
数据类型字节数
摘要: c/c++中获取字符串长度。有以下函数:size()、sizeof() 、strlen()、str.length();一、数组或字符串的长度:sizeof()、strlen()1、sizeof():返回所占总空间的字节数(1)、对于整型字符型数组(2)、对于整型或字符型指针2、strlen():返回
阅读全文
posted @ 2020-03-23 17:12 靖愁
阅读(420)
评论(0)
推荐(0)
编辑
公告