#include <stdio.h>
#include <string.h>
#include <Windows.h>
#pragma warning(disable:4996)
int main(void) {
char word[64];
int count=0;
int length=0;
printf("请输入任意多个单词:");
while (1) {
scanf("%s", word);
if (word == "-1"){
break;
}
}
count++;
length += strlen("word");
printf("一共有%d个单词\n", count);
printf("一共有%d个字符\n", length);
system("pause");
return 0;
}