2021-08-17 C语言getchar() 与 putchar()

#include <stdio.h> 
/* copy input to output; 1st version */
int main()
{
	int c;
	c = getchar();
	while (c != EOF) {
		putchar(c);
		c = getchar();
	}
	return 0;
}

以下两种为不正确的写法:

猜你喜欢

转载自blog.csdn.net/weiabc/article/details/119767652