'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;
}
}