发布时间:2019-08-01 01:21:48
C/C++的switch...case,不支持非int类型的,这个是语法基础
你不能用double的
用int是可以
用char也可以的(char支持字符的,而char是兼容int的)