编写一个C程序将一个文本的字符计算将字符个数输出到另一个文本文件(图)

#include "stdAfx.h"
#include "ctype.h"
#include "stdlib.h"

int main(void)
{
	char ch;
	int ave=0;

	while((ch=getchar())!=EOF)
		ave++;

	printf("The char is %d ge\n",ave);

	system("pause");

	return 0;
}

编写一个C程序将一个文本的字符计算将字符个数输出到另一个文本文件(图)_第1张图片编写一个C程序将一个文本的字符计算将字符个数输出到另一个文本文件(图)_第2张图片

你可能感兴趣的:(c,System,include)