I think i get how your trying to explain it, and yeah i think your right. Each dimension is a point on the diagram and each can hold data. Using this method of drawing out an array you can draw any dimensions (well over 60,000) although why you would want to who knows lol I find this diagram easier to grasp than that of a table which can only easily show up to a 3 dimensional array ie
Array(4)
_
|0|
|1|
|2|
|3|
|4|
-
Array(1,1)
_________
| 0,0 | 0,1|
| 1,0 | 1,1|
------------
etc
[Challenge]What Am I?Explain my methods according to the diagram
20 Replies - 1714 Views - Last Post: 23 December 2009 - 12:02 PM
#17
Re: [Challenge]What Am I?
Posted 22 December 2009 - 09:51 PM
jhouns, on 22 Dec, 2009 - 04:07 PM, said:
I think i get how your trying to explain it, and yeah i think your right. Each dimension is a point on the diagram and each can hold data.
There's a tutorial for multi-dimensional arrays I wrote.
Also, you're wrong. In an array, only the last dimension holds any actual data. The rest are simply place holders. In a cell 1,1,3. The 3 is the data, 1, 1 only tell you which row of numbers to look at.
#18
Re: [Challenge]What Am I?
Posted 22 December 2009 - 11:19 PM
#19
Re: [Challenge]What Am I?
Posted 22 December 2009 - 11:32 PM
a 3 dimensional array, really?
no I like the giraffe response better, that's what I'm going to remember it as.
no I like the giraffe response better, that's what I'm going to remember it as.
#20
Re: [Challenge]What Am I?
Posted 23 December 2009 - 12:20 AM
I will, from this day forward, always refer to 3-dimensional arrays as 'giraffes'.
#21
Re: [Challenge]What Am I?
Posted 23 December 2009 - 12:02 PM
i think that is why the world should refer to them as giraffes xD
|
|

New Topic/Question
Reply




MultiQuote






|