#include<stdio.h> int main(void) { while (1) { char a; a = getchar(); printf("What you write is: %c\n", a); getchar(); //printf不读取换行字符,用来消除读取后留在缓存中的换行字符 } return 0;
[此贴子已经被作者于2020-11-1 07:21编辑过]