- 注册时间
- 2004-10-13
- 最后登录
- 1970-1-1
|
#include<stdio.h>
void main()
{
FILE *fp;
char ch;
if((fp=fopen("file.txt","w"))==NULL)
{
printf("can't open file.\n");
exit(0);
}
while((ch=getchar())!='\n')
fputc(ch,fp);
fclose(fp);
}
像以上程序,它为什么总会报一个 'exit' undefined assuming extern returning int 的警告呢?[s:3] |
|