初学文件输入输出,不知道问题在哪儿
[Error] ld returned 1 exit status#include<stdio.h>
#include<stdlib.h>
int mian()
{
FILE *ft;
char ch;
if((ft=fopen("D:\\sss\\A.dat","r"))==NULL)
{
printf("can't open");
exit(0);
}
while(!feof(ft))
{
ch=fgetc(ft);
putchar(ch);
}
fclose(ft);
putchar(10);
return 0;
}