- 论坛徽章:
- 0
|
谢谢楼上 还有一个问题
#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)
请问是什么问题呢? |
|