zoukankan
html css js c++ java
多种写法
一: 检查一个数组中元素个数
第一种:用库函数strlen
len = strlen(str);
//
数组长度
第二种:利用计数器
inti=
0
;
while
(str[i++] !=
'