read subject heading.
read subject heading.
Who knows. Could be plenty of reasons. What if you had an array representing a 3D space where each element was to contain a string description of the element?
char 3DSpace[10][10][10][50];
Just the first simple idea that popped to mind. ... Why?
"There's always another way"
-lightatdawn (lightatdawn.cprogramming.com)
Database application is another one.
If a tree falls in the forest, and no one is around to see it, do the other trees make fun of it?
I've seen them used several times just for the sake of simple storage. I don't think there's a reason for them to be obscure.
If you get a school assignment to use 4D arrays?
4d array is not hard to build up but the concept is hard to understand.Originally posted by toaster
read subject heading.
Never end on learning~
int g_4DArray[5][5][5][5];concept is hard to understand.
Nah, just visualize a 5*5*5 3D Cube, and each element cooresponds to a 1D array of 5 elements.
And what about 9D? (See Imagination thread.)
"There's always another way"
-lightatdawn (lightatdawn.cprogramming.com)
Is there a way to build an array of arrays.. Line
inr arrat[int array1[][][]]
does it work.....
I believe what you'd be looking for is an array of structs such as:
struct
{
int SomeInts[10][10][10];
} MyStructArray[10][20];
Though in this situation I dont know why you would just use:
int SomeInts[10][20][10][10][10];
"There's always another way"
-lightatdawn (lightatdawn.cprogramming.com)