Array index help.
#2

To define an array you need to type in the following thing:
Код:
new array[128];
This is like making a normal variable but this variable stores some things in it.
Indexes in arrays start with 0. So if you want to assign a value to a place in the array, for example for place 0:
Код:
array[0] = somevalue;
array[1] = anothervalue; //etc.
If you still don't understand give me more details about what you don't understand.
Reply


Messages In This Thread
Array index help. - by Michael98 - 02.11.2012, 20:28
Re: Array index help. - by YoYo123 - 02.11.2012, 20:35
Re: Array index help. - by Michael98 - 02.11.2012, 20:40

Forum Jump:


Users browsing this thread: 1 Guest(s)