HI
following is a simple programming i have done. the problem i encouter is , why
i can't end my program by Key in "EOF" hope the expert over here can advice
me.
include <stdio.h>
main()
{
int c;
c = getchar();
while (c!= EOF)
{
putchar (c);
c = getchar ();
}
return 0;
}
...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
HI
following is a simple programming i have done. the problem i encouter is , why
i can't end my program by Key in "EOF" hope the expert over here can advice
me.
include <stdio.h>
main()
{
int c;
c = getchar();
while (c!= EOF)
{
putchar (c);
c = getchar ();
}
return 0;
}
...