void ReadData()
{
FILE *fp;
char arr[200],ch;
int count=0;
if((fp=fopen("in.txt","r"))==NULL)
{
printf("Cannot open this file!\n");
exit(0);
}
if(fgetc(ch==' '||ch=='\n')) //是这行错了
{
count++;
}
printf("%d",count);
}对不起,有错误:error C2664: 'fgetc' : cannot convert parameter 1 from 'bool' to 'struct _iobuf *'