Multi dimensiona arrays initialise
#1

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)