#include<stdio.h>void main(){ int c; c=getchar(); //scanf("%c",&c); if(c!='a') printf("%d",c); }区别:getchar()读取回车scanf不读取回车