代码如下:
#include
int main()
{
char c;
getchar();
while((c=getchar())!=EOF)
putchar(c);
if(c=='\n')
break;
}
return 0;
运行截图如下: