我們不再支援此瀏覽器。
升級至 Microsoft Edge 以善用最新功能、安全性更新和技術支援。
'type' : 案例運算式的不合法類型
案例運算式必須是整數常數。
下列範例會產生 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; } }
此頁面有幫助嗎?