#include <stdio.h>
int main()
{
char ch;
scanf("%c",ch);
if((ch > 64 && ch < 106) ||(ch > 96 && ch < 123))
printf("%c is a letter",ch);
if(ch > 47 && ch < 58)
printf("%c is a number",ch);
else
printf("%c is the other");
return 0;
}
printf("%c is the other",ch);
这句话有毛病。
我刚刚突然发现这句scanf("%c",ch);差个&,现在程序可以运行了