include "stdio.h" int strlen(char *s){//求字符串长度函数 int n;for(n=0;s[n]!='\0';n++);return n;} int main() {char a[100];gets(a); printf("%d\n",strlen(a));return 0;}/*运行结果:wqerqew7 */