/*1.设计一个程序,统计从输入到文件结尾为止的字符数。*/
#include<stdio.h>
#include<stdlib.h>
int main()
{
char a;
int i = 0;
printf("Please input:");
while ((a = getchar()) != EOF)
i++;
printf("%dcharacters\n", i);
system("pause");
return 0;
}