问题遇到的现象和发生背景 为什么用12345这些数字就能运行 abcde就不行呀
用代码块功能插入代码,请勿粘贴截图 #include <stdio.h>
int main()
{
char chs;
printf("\t \t\t 节目单");
printf("\ta,A:相声 \tb,B:我和我的祖国 \tc,C:诗朗诵《大漠深处的胡杨!》\td,D:魔术《隐身术》\te,E:《老师好》");
scanf("%d",&chs);
switch(chs)
{
default:printf("输入错误");break;
case a: case A: printf("相声");break;
case b: case B: printf("我和我的祖国");break;
case c: case C: printf("诗朗诵《大漠深处的胡杨!》");break;
case d: case D: printf("魔术《隐身术》");break;
case e: case E: printf("《老师好》");break;
return 0;
}
}