13.06.2012, 18:31
Hi
I want to initialise a two dimensional array with -1 default values instead of 0.
In one dimensional its works perfectly:
new OneDimension[50] = { -1, ... };
But in two, its doesnt work:
new TwoDimension[50][2] = { {-1, -1}, ... };
Can you explain me, how can i use the onedimension style in the two dimensional?
Thank you
I want to initialise a two dimensional array with -1 default values instead of 0.
In one dimensional its works perfectly:
new OneDimension[50] = { -1, ... };
But in two, its doesnt work:
new TwoDimension[50][2] = { {-1, -1}, ... };
Can you explain me, how can i use the onedimension style in the two dimensional?
Thank you