int ch ; /d6Rdl`w
ch=getche() ; H[s+.&^
if((ch>='a') && (ch<='z')) \WnTpl>B
printf("%c is a lowercase letter\n" ,ch); I:oEt
else if ((ch>='A') && (ch<='Z')) hTO2+F*
print(" %c is a uppercase letter\n" ,ch); 6y
Muj<L
else if((ch>'0')&&(ch<'9') aynaV
printf(" %c is a number character between 0 and 9\n" ,ch) ; 2.Ww(`swL
else A9SL|9Q
printf("%c is...") [S]q'c)
`)]W~
外面再加个循环就行了