Multi layered arrays |
![]() ![]() |
Multi layered arrays |
Tue, 03 Nov 2009 12:53:49 +0000
Post
#1
|
|
|
Hackling ![]() Group: Members Posts: 11 Joined: Sat, 31 Oct 2009 18:16:17 +0000 Member No.: 16,244 |
Can someone please explain to me in regular english what the *&^% a Multi layered array is. I googled it and it all looks like a forieng language.
From what I understand a Array, first depends on what kind (integer, string, real, ect) and it starts at 0 and fills one memory space with a variable, so like exampleCode[50] the 50 means that is how many slots their is to put data.. but what is a multi layer array? |
|
|
|
Tue, 03 Nov 2009 13:46:52 +0000
Post
#2
|
|
![]() Also known as Boris ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Global Moderators Posts: 6,724 Joined: Tue, 07 Mar 2006 17:32:49 +0000 From: The Great England Member No.: 284 |
Do you mean a multi dimensional array? Such as an array[10][10] = 100 available entries, or perhaps an array of arrays?
-------------------- skype me: tehboris
PS3 ID: tehBoris Twitter: https://twitter.com/tehboris Steam: http://steamcommunity.com/id/tehboris |
|
|
|
Tue, 03 Nov 2009 14:39:37 +0000
Post
#3
|
|
|
Hackling ![]() Group: Members Posts: 11 Joined: Sat, 31 Oct 2009 18:16:17 +0000 Member No.: 16,244 |
Yes, I apologize, I mean multi dimensional arrays such as whateever[5][10][1000]
and you said an array within an array? so a 3d array would be an array that has another array within that, and then another array deeper then that one? so it is like an array with class? so like the first array could be the student name the next array within that one could be their GPA the next one within that one could be their test scores that created the GPA and since it is an array you can compare all of the students scores and names and GPAS? |
|
|
|
Tue, 03 Nov 2009 15:49:06 +0000
Post
#4
|
|
|
Hackling ![]() Group: Members Posts: 11 Joined: Sat, 31 Oct 2009 18:16:17 +0000 Member No.: 16,244 |
ok.. I *THINK* i figured it out, thanks to Sparda who pointed out I was googling the wrong thing, thanks
|
|
|
|
Wed, 04 Nov 2009 01:40:48 +0000
Post
#5
|
|
![]() Hak.5 Zombie ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 145 Joined: Tue, 04 Aug 2009 18:29:42 +0000 Member No.: 15,055 |
*WHY is every answer have to do with googling it*
Nobody can just post a simple answer? I also want to know about multi demensional arrays. That is what some ninja told me. I think I will keep the ninja tradition going until I am fully aware of arrays. |
|
|
|
Wed, 04 Nov 2009 02:21:56 +0000
Post
#6
|
|
![]() Hak.5 Pirate ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 437 Joined: Sun, 28 Jun 2009 04:32:18 +0000 From: Sydney, Australia Member No.: 14,583 |
Multi dimensional arrays are exactly what they sound like.
A standard array, MyArray[], has one dimension. It is a line of variables. A two-dimensional array, MyArray[][] is an array of arrays. Each element in the array is in turn another array. It's a grid of variables. A three-dimensional array, MyArray[][][], is a two-dimensional array of arrays. Each element in the 2-dimensional array is another array. It's essentially a cube of variables. -------------------- ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|
|
|
Wed, 04 Nov 2009 07:37:14 +0000
Post
#7
|
|
|
Hak.5 Pirate ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 323 Joined: Wed, 18 Jul 2007 14:28:52 +0000 Member No.: 7,850 |
Multi dimensional arrays are exactly what they sound like. A standard array, MyArray[], has one dimension. It is a line of variables. A two-dimensional array, MyArray[][] is an array of arrays. Each element in the array is in turn another array. It's a grid of variables. A three-dimensional array, MyArray[][][], is a two-dimensional array of arrays. Each element in the 2-dimensional array is another array. It's essentially a cube of variables. What's gets really interesting is when you define a multiple dimesion array as part of a structure which itself is then defined in an array. Then if you're really screwed in the head mix in some mixed Little Endian/Big Endian DWORDS, of course you're working with the whole word but the individual bits! Yeah it's great when you finally realize "Bit 0" is the middle. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: Sat, 21 Nov 2009 15:55:34 +0000 |