05.08.2013, 23:53
Anyone know why I get these warning / error? I used enum as I did [][] and printing the value for [i][1] prints invalid results, not the correct data... But prints right data for [i][0]
warning 228: length of initialler exceeds size of the enum field
error 018: initialization data exceeds declared size
Thanks
warning 228: length of initialler exceeds size of the enum field
error 018: initialization data exceeds declared size
Код:
enum Data
{
SmallCode[5],
LongerCode[60],
}
new TenCodes[][Data] =
{
{"10-00","Use Caution (10%00)"},
{"10-01","Signal Week (10%01)"},
{"10-02","Signal Good (10%02)"},
{"10-03","Stop transmitting (10%03)"},
{"10-04","Okay, Affirmative (10%04)"}
};


