10-6-4 统计单词数量(文件)(*) (15 分)
请编写函数,统计英文文章的单词数量。
函数原型
int CountWord(FILE *f);
说明:参数 f 为文件指针。函数值为该文件的单词数量。
裁判程序
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
int CountWord(FILE *f);
int main()
{
FILE *f;
int n;
f = fopen("Story.txt", "r");
if (!f)
{