#include <stdio.h>
main()
{
char c;
while (scanf("%c", &c) != EOF)
{
printf("%c", c);
}
return 0;
}
main()
{
char c;
while (scanf("%c", &c) != EOF)
{
printf("%c", c);
}
return 0;
}
一段很讓人不爽的代碼,為什么要輸入兩次Ctrl+Z呢。只能說是VC6.0和C-Free的bug, 誰知道了告訴我一聲。其他人的討論:
http://topic.csdn.net/u/20080429/22/dcd3aba2-0cad-4c56-aeb2-2be7d3b07d44.html