--------------------Configuration: IP - Win32 Debug--------------------
Compiling...
IP.C
c:\turboc2\ip.c(28) : error C2275: 'FILE' : illegal use of this type as an expression
d:\program files\microsoft visual studio\vc98\include\stdio.h(156) : see declaration of 'FILE'
c:\turboc2\ip.c(28) : error C2065: 'pf' : undeclared identifier
c:\turboc2\ip.c(29) : warning C4047: 'function' : 'struct _iobuf *' differs in levels of indirection from 'int '
c:\turboc2\ip.c(29) : warning C4024: 'fgets' : different types for formal and actual parameter 3
c:\turboc2\ip.c(34) : warning C4047: 'function' : 'struct _iobuf *' differs in levels of indirection from 'int '
c:\turboc2\ip.c(34) : warning C4024: 'fclose' : different types for formal and actual parameter 1
c:\turboc2\ip.c(38) : warning C4047: 'function' : 'struct _iobuf *' differs in levels of indirection from 'int '
c:\turboc2\ip.c(38) : warning C4024: 'fclose' : different types for formal and actual parameter 1
Error executing cl.exe.
谢谢,我用TC编译有两个错误,三个警告:
1.FILE * pf=fopen("C:\\ip.txt","r"); 此行报:improper use of a typedef symbol in function Find
2.还是这行:Undefined symbol 'pf' in function Find
3-5.while(fgets(tmp,128,pf)!=NULL)
fclose(pf);
另外倒数第三行的fclose(pf);
此三行警告:Non-protable pointer conversion in function Find