int ch ; =M Q2sb
ch=getche() ; :YkDn~@
if((ch>='a') && (ch<='z')) M'pY-/.
printf("%c is a lowercase letter\n" ,ch); 7{?lEQ&UE
else if ((ch>='A') && (ch<='Z')) 5%vP~vy_}
print(" %c is a uppercase letter\n" ,ch); B3ohHxHu
else if((ch>'0')&&(ch<'9') (!^N~ =e;
printf(" %c is a number character between 0 and 9\n" ,ch) ; (gs`=H*d;
else \JF57t}Zk
printf("%c is...") D/+@d:- G
T\<M?`Y
外面再加个循环就行了