int ch ; IZ/+RO n
ch=getche() ; P-.>vi^+
if((ch>='a') && (ch<='z')) 7']n_-fu
printf("%c is a lowercase letter\n" ,ch); IOtSAf
else if ((ch>='A') && (ch<='Z')) '(r/@%=U
print(" %c is a uppercase letter\n" ,ch); q{ i9VJ]
else if((ch>'0')&&(ch<'9') 1TJ2HO=Y
printf(" %c is a number character between 0 and 9\n" ,ch) ; N[:;f^bH49
else vWc =^tT
printf("%c is...") )l~:Puvh
sA[hG*#/S
外面再加个循环就行了