while( (ch = fgetc( infile )) != EOF ) if(ch ==' ') words++;
它工作得很好,但是如果我们在一个字符串中有空行,我们怎么想检测这些行并计算正确的字?
c string
c ×1
string ×1