int ch ; aO}p"-'
ch=getche() ; \ KsKb0sM
if((ch>='a') && (ch<='z')) l: kW|
printf("%c is a lowercase letter\n" ,ch); ?r*}1WsH
else if ((ch>='A') && (ch<='Z')) *>!-t
print(" %c is a uppercase letter\n" ,ch); M04u>|
,
else if((ch>'0')&&(ch<'9') zsj]WP6j
printf(" %c is a number character between 0 and 9\n" ,ch) ; )iVuac]E++
else Z%b1B<u$
printf("%c is...") *=]UWM~]
z).&0K
外面再加个循环就行了