switch语句的case入口可不可以是字符呢
比如 case a
可以,啊
如果是单个字符可以这样:
switch(ch)
{case 'a' :
//operation
case 'b' :
..
}