此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
“type”: 非法的 case 表达式类型
case 表达式必须是整数常量。
以下示例将生成 C2052:
// C2052.cpp int main() { int index = 0; switch (index) { case 1: return 24; case 1.0: // C2052 // try the following line instead // case 2: return 23; } }
此页面是否有帮助?