הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
'type' : illegal type for case expression
Remarks
Case expressions must be integer constants.
Example
The following example generates 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;
}
}