主观

下面程序可用来统计文件中字符的个数。

#include<stdio.h>

main()

{FILE *fp;

long num=0;

if((fp=______)==NULL)/*第一空*/

{printf("Can not open file\n");exit(0);}

while(______)/*第二空*/

{______;}/*第三空*/

printf("num=%d\n",num);

fclose(fp);

}

参考答案
您可能感兴趣的试题
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服