大佬们 我有遇到问题了 我这个编译没问题 一运行就出错请问是什么原因呢?求指点 非常感谢
#include <stdio.h>
void main()
{
char c;
printf("input a character: ");
c = getcher();
if (c < 32) printf("this is a control character!\n");
else if (c >= 0 && c <= '9') printf("this is a digit\n");
else if (c >= "A" && c <= 'Z') printf("this is a capital letter!\n");
else if (c >= 'a' && c <= 'z') printf("this is a small leteter!\n");
else printf("this is an other character\n");
}
我是完全照着打的啊