具体的程序如下
/*
* input_copy.c
*
* Created on: 2009-12-31
* Author: PanFei
*/
#include<stdio.h>
/*
* copy input to output;1st version
* */
int main()
{
int c;
c = getchar();
while(c != EOF){
putchar(c);
c = getchar();
}
return 0;
}
这个程序的功能很简单————将你输入的“字符”原封不动地打印出来!

被折叠的 条评论
为什么被折叠?



