473,394 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

array question

quick question

i know that a two dimension array is like a chart
basically (x columns, y rows)

my question is though what would an array with more than two dimensions look
like?

would it represent more than one table?

WStoreyII

Thanks Again

Happy Easter !!!!!
Nov 20 '05 #1
14 815
MyArray(x, y, z, ...etc)

After 3 dimensions, which you can picture as something like a rubic's cube,
it's best to stop visualizing the array, and just work with the fact that
you have more indexe combinations.

-Rob Teixeira [MVP]

"WStoreyII" <pa**********@sbcglobal.net> wrote in message
news:1P*******************@newssvr25.news.prodigy. com...
quick question

i know that a two dimension array is like a chart
basically (x columns, y rows)

my question is though what would an array with more than two dimensions look like?

would it represent more than one table?

WStoreyII

Thanks Again

Happy Easter !!!!!

Nov 20 '05 #2
MyArray(x, y, z, ...etc)

After 3 dimensions, which you can picture as something like a rubic's cube,
it's best to stop visualizing the array, and just work with the fact that
you have more indexe combinations.

-Rob Teixeira [MVP]

"WStoreyII" <pa**********@sbcglobal.net> wrote in message
news:1P*******************@newssvr25.news.prodigy. com...
quick question

i know that a two dimension array is like a chart
basically (x columns, y rows)

my question is though what would an array with more than two dimensions look like?

would it represent more than one table?

WStoreyII

Thanks Again

Happy Easter !!!!!

Nov 20 '05 #3
ok i am sure you are right there
but like how would i use it

i cant use an array if i dont understand what each index does

WStoreyII

"Rob Teixeira [MVP]" <RobTeixeira@@msn.com> wrote in message
news:es**************@TK2MSFTNGP11.phx.gbl...
MyArray(x, y, z, ...etc)

After 3 dimensions, which you can picture as something like a rubic's cube, it's best to stop visualizing the array, and just work with the fact that
you have more indexe combinations.

-Rob Teixeira [MVP]

"WStoreyII" <pa**********@sbcglobal.net> wrote in message
news:1P*******************@newssvr25.news.prodigy. com...
quick question

i know that a two dimension array is like a chart
basically (x columns, y rows)

my question is though what would an array with more than two dimensions

look
like?

would it represent more than one table?

WStoreyII

Thanks Again

Happy Easter !!!!!


Nov 20 '05 #4
ok i am sure you are right there
but like how would i use it

i cant use an array if i dont understand what each index does

WStoreyII

"Rob Teixeira [MVP]" <RobTeixeira@@msn.com> wrote in message
news:es**************@TK2MSFTNGP11.phx.gbl...
MyArray(x, y, z, ...etc)

After 3 dimensions, which you can picture as something like a rubic's cube, it's best to stop visualizing the array, and just work with the fact that
you have more indexe combinations.

-Rob Teixeira [MVP]

"WStoreyII" <pa**********@sbcglobal.net> wrote in message
news:1P*******************@newssvr25.news.prodigy. com...
quick question

i know that a two dimension array is like a chart
basically (x columns, y rows)

my question is though what would an array with more than two dimensions

look
like?

would it represent more than one table?

WStoreyII

Thanks Again

Happy Easter !!!!!


Nov 20 '05 #5
Hi WS

Your multidimensional Array is everytime an single Array from the lowest
level

I hope this helps?

Cor
Nov 20 '05 #6
Hi WS

Your multidimensional Array is everytime an single Array from the lowest
level

I hope this helps?

Cor
Nov 20 '05 #7
huh

you sort of lost me there cor

WStoreyII

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi WS

Your multidimensional Array is everytime an single Array from the lowest
level

I hope this helps?

Cor

Nov 20 '05 #8
huh

you sort of lost me there cor

WStoreyII

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi WS

Your multidimensional Array is everytime an single Array from the lowest
level

I hope this helps?

Cor

Nov 20 '05 #9
On Mon, 12 Apr 2004 00:45:27 GMT, WStoreyII wrote:
ok i am sure you are right there
but like how would i use it

i cant use an array if i dont understand what each index does

WStoreyII

"Rob Teixeira [MVP]" <RobTeixeira@@msn.com> wrote in message
news:es**************@TK2MSFTNGP11.phx.gbl...
MyArray(x, y, z, ...etc)

After 3 dimensions, which you can picture as something like a rubic's

cube,
it's best to stop visualizing the array, and just work with the fact that
you have more indexe combinations.

-Rob Teixeira [MVP]

"WStoreyII" <pa**********@sbcglobal.net> wrote in message
news:1P*******************@newssvr25.news.prodigy. com...
quick question

i know that a two dimension array is like a chart
basically (x columns, y rows)

my question is though what would an array with more than two dimensions

look
like?

would it represent more than one table?

WStoreyII

Thanks Again

Happy Easter !!!!!



Try thinking of a two dimensional array as an array of arrays
Try thinking of a three dimensional array as an array of 2 dimensional
arrays.

Or if you prefer, try thinking in terms of 3D space X, Y, and Z axes where
the X dimension is horizontal from left to right, Y axis is vertical up,
and down, and the Z axis if forward and backwards.

Does that help any?

--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.
Nov 20 '05 #10
On Mon, 12 Apr 2004 00:45:27 GMT, WStoreyII wrote:
ok i am sure you are right there
but like how would i use it

i cant use an array if i dont understand what each index does

WStoreyII

"Rob Teixeira [MVP]" <RobTeixeira@@msn.com> wrote in message
news:es**************@TK2MSFTNGP11.phx.gbl...
MyArray(x, y, z, ...etc)

After 3 dimensions, which you can picture as something like a rubic's

cube,
it's best to stop visualizing the array, and just work with the fact that
you have more indexe combinations.

-Rob Teixeira [MVP]

"WStoreyII" <pa**********@sbcglobal.net> wrote in message
news:1P*******************@newssvr25.news.prodigy. com...
quick question

i know that a two dimension array is like a chart
basically (x columns, y rows)

my question is though what would an array with more than two dimensions

look
like?

would it represent more than one table?

WStoreyII

Thanks Again

Happy Easter !!!!!



Try thinking of a two dimensional array as an array of arrays
Try thinking of a three dimensional array as an array of 2 dimensional
arrays.

Or if you prefer, try thinking in terms of 3D space X, Y, and Z axes where
the X dimension is horizontal from left to right, Y axis is vertical up,
and down, and the Z axis if forward and backwards.

Does that help any?

--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.
Nov 20 '05 #11
Better

Your multidimensional Array is everytime a single Array from the lower level

v(w,x,y,z)
-------------------
v(ArrayW)
w(ArrayX)
x(ArrayY)
y(ArrayZ)

Cor
Nov 20 '05 #12
Better

Your multidimensional Array is everytime a single Array from the lower level

v(w,x,y,z)
-------------------
v(ArrayW)
w(ArrayX)
x(ArrayY)
y(ArrayZ)

Cor
Nov 20 '05 #13
Sin
> ok i am sure you are right there
but like how would i use it

i cant use an array if i dont understand what each index does


YOU define what each index does.

For example :

Dim data(4, 11, 30, 11, 59, 59) as Long

Index per apperance : Year index (from 2000), month, day, hour, minute,
second

This array would have one Long in memory for each second elapsed from 2000
to 2005 (plus a couple extras since months dont always have 31 days, hour
change, etc). Don't actually try to allocate it for testing purposes, it
would take over 300 megs of memory...

Once you've passed 3 dimensions, you can't really picture it like other
arrays. In fact, in memory it's just a 1 dimension flat chunk of data
anyhow... hehe...

In fact you could switch dimensions and as long as you switch indexing
you'll always end up on the right element. In my example, it doesnt matter
if minutes are first or last, you'll get one slot of indexable memory for
each element anyhow. Your data would be reprensented differently in memory
though...

Alex.
Nov 20 '05 #14
Hi Sin,

This is a great answer, however start next time with telling "Think on the
dates and times".

However the answer is great and I will try to remember it me when someone
ask it again.

Cor
Nov 20 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: SilverWolf | last post by:
I need some help with sorting and shuffling array of strings. I can't seem to get qsort working, and I don't even know how to start to shuffle the array. Here is what I have for now: #include...
9
by: buda | last post by:
Hi, I've been wondering for a while now (and always forgot to ask :) what is the exact quote from the Standard that forbids the use of (&array) (when x >= number_of_columns) as stated in the FAQ...
3
by: Pol Bawin | last post by:
Hi All, One : I have a property that get/set a array of an abstract class A By default my array is null In the propertygrid, It is not works correctly when my array is null. (when my array...
11
by: Geoff Cox | last post by:
Hello, I am trying to get a grip on where to place the initialization of two arrays in the code below which was created using Visual C++ 2005 Express Beta 2... private: static array<String^>^...
28
by: anonymous | last post by:
I have couple of questions related to array addresses. As they belong to the same block, I am putting them here in one single post. I hope nobody minds: char array; int address; Questions...
104
by: Leszek | last post by:
Hi. Is it possible in javascript to operate on an array without knowing how mamy elements it has? What i want to do is sending an array to a script, and this script should add all values from...
51
by: Pedro Graca | last post by:
I run into a strange warning (for me) today (I was trying to improve the score of the UVA #10018 Programming Challenge). $ gcc -W -Wall -std=c89 -pedantic -O2 10018-clc.c -o 10018-clc...
7
by: heddy | last post by:
I have an array of objects. When I use Array.Resize<T>(ref Object,int Newsize); and the newsize is smaller then what the array was previously, are the resources allocated to the objects that are...
8
by: T. Wintershoven | last post by:
Hello all, I have a form with some checkboxes. The names of these checkboxes come from an array. When i click the submit button the resultcode doesn't recognize the names when i want to check...
4
by: mab464 | last post by:
I have this code on my WAMP server running on my XP machine if ( isset( $_POST ) ) { for($i=0; $i<count($_POST);$i++) { if ($ans != NULL ) $ans .= ", " . $_POST ; // Not the first...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.