include <stdio.h>int Strlen(char *s);int main(){char a[50];printf("请输入一个字符串:\n");scanf("%s",a);printf("输入的字符串长度为%d",Strlen(a));return 0;}int Strlen(char *s){int sum=0;while(*s++!='\0')sum++;return sum;}