Array 4*4

I have to develop an array of 4*4

and to write each location of array.

Please tell me the syntax to develop an array of 4*4 and how to write on it

I want like

int a [4][1] =

{ 1
2
3
4 };

actually i had to make four arrays of 4*1 dimensions

Then it would be like below?

vector<vector<vector<double> > > array3D;

// Set up sizes. (HEIGHT x WIDTH)
array3D.resize(4);
for (int i = 0; i < 4; ++i)
{
array3D[i].resize(1)
}

Could i develop array as written below?

int a1 [4][1]; // height*width
int a2 [4][1];

i had to create 40 such arrays just name would be changed like a1, a2, a3....

is there any way to develop all these without creating one by one.
Last edited on
Topic archived. No new replies allowed.