关于输出自己程序的源代码出了一点问题 求指教
#include<stdio.h>#include<stdlib.h>
void readCode();
main()
{
int i, j, k;
i = 1;
j = 1;
k = i+j;
readCode();
return 0;
}
void readCode()
{
char ch;
FILE *fp;
fp = fopen("e:\\VC6.0\\week14_1.c","r");
ch = fgetc(fp);
if( fp==NULL )
{
printf("Failure to open!\n");
exit(0);
}
while( ch!=EOF )
{
putchar(ch);
}
fclose(fp);
}
输出结果是无限循环的# 是出了什么问题呢