|
From: <au...@gm...> - 2006-02-01 15:58:30
|
Hi,
> Honestly, I am a newbie for programming. But now I have to make
> 6-dimensional array in my project. I am very confuse to implement this.
> Could any of you help me how to make 6-D array? I haven't seen any
> examples of how to do this.
This would look pretty nice :)
type array[size][size][size][size][size][size];
Even more nice it looks when creating array on free store:
type ******array = new type*****[size];
for(int i = 0; i < size; ++i)
array[i] = new type****[size];
for(int i = 0; i < size; ++i)
for(int j = 0; j < size; ++j)
array[i][j] = new type***[size];
and so on :)
Also don't forget to delete it after all :)
I think this is enaugh for understanding it.
/Aurimas
|