我用的是VC
#include<stdio.h>
void
mian()
{ FILE *fp;
int dat[100];
fp=fopen("test_a.dat","rb") ;
fread(dat,sizeof(int),100,fp);
{ if(feof(fp))
printf("end of file");
else
printf("read error");
fclose(fp);
}
}
运行时出现以下错误:
--------------------Configuration: Cpp3 - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Cpp3.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
Cpp3.exe - 1 error(s), 0 warning(s)
请问是什么问题呢?
[此贴子已经被作者于2006-2-20 16:30:03编辑过]