作者在 2009-02-13 09:47:44 发布以下内容
/* 1st verion.copy input to output */
#include <stdio.h>
int main (void)
{
int c;
{
int c;
c = getchar();
while (c != EOF)
{
putchar(c);
c = getchar();
}
while (c != EOF)
{
putchar(c);
c = getchar();
}
return 0;
}
}
===========================
/* 2ed version.copy input to output */
#include <stdio.h>
int main(void)
{
int c;
while ((c = getchar()) != EOF)
{
putchar(c);
}
return 0;
}