C语言,计算字符串长度,不用strcat

#include <stdio.h> main() { char a[100]; int i=0; gets(a); while(a[i]!='\0') i++; printf("%d",i); }
相关文章
相关标签/搜索