int ch ; Q*|O9vu'D
ch=getche() ; !l!^`c
if((ch>='a') && (ch<='z')) (.TkvUj`
printf("%c is a lowercase letter\n" ,ch); -#srn1A>
else if ((ch>='A') && (ch<='Z')) [V'3/#Z
print(" %c is a uppercase letter\n" ,ch); tpw0j
CVu
else if((ch>'0')&&(ch<'9') &>kklP
printf(" %c is a number character between 0 and 9\n" ,ch) ; a86m?)-c
else FtbqZN[
printf("%c is...") \,jrug<C$^
j.O7-t%C
外面再加个循环就行了