关于EOF
#include<stdio.h>
int main(void)
{
int ch;
while((ch==getchar())!=EOF)
putchar(ch);
printf("the game is over\n");
return 0;
}
按F6或者CTRL+z都跳不出循环咋回事呀,怎么才能看到“the game is over”的输出呀
?
2010-12-21 10:36
2010-12-21 10:43
2010-12-21 10:55