目录 题目代码 题目 代码 #include <stdio.h> #include <string.h> int main() { int len=0; char str[5000]; char* word; while(scanf("%s",str)!= EOF) word = str; printf("%d",strlen(word)); }