摘要:
c/c++中获取字符串长度。有以下函数:size()、sizeof() 、strlen()、str.length();一、数组或字符串的长度:sizeof()、strlen()1、sizeof():返回所占总空间的字节数(1)、对于整型字符型数组(2)、对于整型或字符型指针2、strlen():返回 阅读全文
posted @ 2019-06-29 22:48
尹昱钦
阅读(1148)
评论(0)
推荐(0)
该文被密码保护。 阅读全文
posted @ 2019-06-29 10:57
尹昱钦
阅读(12)
评论(0)
推荐(0)