Setting vallue of all cells to -1
#1

Hi I have array for example:

new arr[NUMBER][ENUM];

I want to have it like:
arr[0] = -1;
arr[1] = -1;

etc just want to inicialize it at declaration of variable if it is possible..

I want to set all cells to -1, how I can do that without loop? Ty.
Reply


Messages In This Thread
Setting vallue of all cells to -1 - by Riwerry - 19.12.2014, 08:03
Re: Setting vallue of all cells to -1 - by zaibaslr2 - 19.12.2014, 08:21
Re: Setting vallue of all cells to -1 - by Riwerry - 19.12.2014, 08:25

Forum Jump:


Users browsing this thread: 1 Guest(s)