使用switch case语句时出现case expressions must be constant expressions问题 将switch-case转化为if-else语句 选择switch语句,同时按Ctrl键和数字1键,选择Convert “switch” to “if-else”