“default”在“switch”语句中只能出现一次
尝试在 switch 语句中多次使用 default 语句。 default case 始终是 switch 语句中的最后一个 case 语句(它是直通 case 语句)。
更正此错误
- 从 switch 语句中移除任何多余的 default case 语句(通常在 switch 语句中最多使用一个 default case 语句)。
尝试在 switch 语句中多次使用 default 语句。 default case 始终是 switch 语句中的最后一个 case 语句(它是直通 case 语句)。