int ch ; 8Q$WwiS
ch=getche() ; -3v\ c~
if((ch>='a') && (ch<='z')) O6)Po
printf("%c is a lowercase letter\n" ,ch); .ml\z5
else if ((ch>='A') && (ch<='Z')) K sE$^`
print(" %c is a uppercase letter\n" ,ch); oe2*$\?.
else if((ch>'0')&&(ch<'9') u_
l?d
printf(" %c is a number character between 0 and 9\n" ,ch) ; /.CS6W^z
else ,=4,eCS
printf("%c is...") Z|Rc54Ct
@KU;'th
外面再加个循环就行了