c++ switch语句 switch可以接受char、short、int、long、bool还有enum类型的使用,字符串、浮点型和所有类型的对象都不能用于switch语句 整型(举例int) 字符型 枚举型(enum)