#include<stdio.h> void main() { char c1,c2; c1=getchar(); fflush(stdin);//清楚键盘缓存区!输入多个字符型数据用 c2=getchar(); putchar(c1); putchar(c2); putchar('\n'); printf("%c,%c\n",c1,c2); }
#include<stdio.h> void main() { char c1,c2; c1=getchar(); c2=getchar(); putchar(c1);putchar('\n'); putchar(c2);putchar('\n'); printf("%c,%c\n",c1,c2); }