strlen函数实现 原型: int strlen(const char *s); 作用:返回字符串的长度。 方法1:利用中间变量 int strlen(const char *s){ int i=0; while(s[i] != '