利用getchar, putchar复制文件 #include<stdio.h> int main(){ int c; while((c = getchar()) != EOF) putchar(c); return 0; }