全部文本 #21762 原始 编辑

Mine

公开 text v1 · 不可变
·已发布 2005-08-31 19:49 UTC
渲染后的文本正文
#include <stdio.h>
main()
{
	int x,y;
	FILE *readfile;
	readfile = fopen("result.txt","r");
	if (readfile == NULL)
			printf("error reading the file\n");
		else
		{
			 y = 0;
			 while(fscanf(stdin,"%d",&x)!=EOF)
			 y = y + 1;
		}
		fprintf(stdout, "total of number have in the text is: %d\n",y);
	}