#include<stdio.h>
#include <stdlib.h>
void main()
{
FILE *fp;
char c1;
if((fp=fopen("c:\\tc\\123.txt","a+"))==NULL)
{
printf("can not open file press any key exit!");
getchar();
exit(1);
}
printf("please input a string:\n");
c1=getchar();
while (c1!='\n')
{
fputc(c1,fp);
c1=getchar();
}
rewind(fp);
c1=fgetc(fp);
while(c1!=EOP)
{
putchat(c1);
c1=gerchar(fp);
}
printf("\n");
fclose(fp);
}
error C2065: 'EOP' : undeclared identifier
C:\tc\25\25.cpp(24) : error C2065: 'putchat' : undeclared identifier
C:\tc\25\25.cpp(25) : error C2065: 'gerchar' : undeclared identifier
执行 cl.exe 时出错.
25.exe - 1 error(s), 0 warning(s)
小弟才疏学浅 到现在有些调用库文件名还不知道什么意思
请各位告诉指点!!!并看看以上的问题!谢谢