|
From: Eric E. <eri...@sb...> - 2006-02-01 16:50:23
|
Just out of curiosity, is this for a school class project? =20 -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of sigit himawan Sent: Wednesday, February 01, 2006 10:08 AM To: Per Westermark Cc: dev...@li... Subject: Re: [Dev-C++] 6-dimensional Array =20 Halo,=20 =20 Thank you for the reply. =20 The condition is like this: I have database which is already converted into .txt file. Inside this = .txt file has 6 parameters, these parameters should be classified into range = of classes. For example parameter A, it should be classified into range of classes = from 0-0.5, 0.5-0.8, 0.8-0.9, etc.=20 There are 30 classes for parameter A, 31 classes for parameter B, 24 = classes for parameter C, 21 classes for parameter D, and 2 other parameters shouldn't be classified because they are independent to time (the value doesn't change). And each parameter has different range of classes.=20 So, after classifying into the classes, we make the 6-Dimensional array. = So, I guess the dimensions of the size are fixed, if i am not mistaken, = they are the amount of classes for each parameter. How is it to programm the 6-D? I have additional question regarding how to sort the value of each parameters from .txt files to the classes. Please teach me or give me = the clue.=20 =20 thank you, =20 Himawan. Per Westermark <pw...@ia...> wrote: Start by informing us if all dimensions are of fixed size, or if they should have dynamic size. For fixed size, this is enough: int my_array[10][10][10][10][10][10]; For dynamic size, a lot of extra code is needed, to allocate vector = arrays of vector arrays of vector arrays of ... /Per W On Wed, 1 Feb 2006, sigit himawan wrote: > Hallo to all of you, > > 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.< BR>> Could any of you help me how to make 6-D array? I haven't seen any examples of how to do this. > thank you in advance. > > Himawan > > > --------------------------------- > > What are the most popular cars? Find out at Yahoo! Autos =20 _____ =20 What are the most popular cars? Find out at Yahoo! <http://us.rd.yahoo.com/evt=3D38382/_ylc=3DX3oDMTEzNWFva2Y2BF9TAzk3MTA3MD= c2BHNlY wNtYWlsdGFncwRzbGsDMmF1dG9z/*http:/autos.yahoo.com/newcars/popular/thiswe= ek. html%20%0d%0a> Autos=20 |