Enum Issue -
#1

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

Код:
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)"}
};
Thanks
Reply


Messages In This Thread
Enum Issue - - by Kyle - 05.08.2013, 23:53
Re: Enum Issue - - by Kyle - 06.08.2013, 07:47
Re: Enum Issue - - by NinjahZ - 06.08.2013, 09:46
Re: Enum Issue - - by Kyle - 06.08.2013, 12:27
Re: Enum Issue - - by Konstantinos - 06.08.2013, 12:55

Forum Jump:


Users browsing this thread: 4 Guest(s)