structure-array-structure-array [message #1136] |
Sat, 24 July 1993 08:46 |
hatay
Messages: 11 Registered: June 1992
|
Junior Member |
|
|
I am trying to read a messy data through structures.
Right now, my difficulty is with the definition
of the structures.
Basically, I could not figure out how
to define a structure which has an array of structures
in the declaration.
In other words: Is there a better way of achieving the below
operation?
header = {trace, idum: 0L, ntrace: 0L, u: 0., v: 0., jdum: 0L}
chunk = {record,idum1: 0L, ncnt: 0L, idum2: 0L,
data1: {trace}, $
data2: {trace}, $
data3: {trace}, $
data4: {trace}, $
data5: {trace}, $
data6: {trace}, $
data7: {trace}, $
data8: {trace}, $
data9: {trace}}
wholefile = replicate({record},50000)
I want to be able declare data1 to data9 fields in a
array.
Thanks for your insight and time on this matter.
Ferhat F. Hatay
Newsgroups: comp.lang.idl-pvwave
Subject: structure-array-structure-array
Summary:
Expires:
References:
Sender:
Followup-To:
Distribution:
Organization: University of Colorado, Boulder
Keywords:
I am trying to read a messy data through structures.
Right now, my difficulty is with the definition
of the structures.
Basically, I could not figure out how
to define a structure which has an array of structures
in the declaration.
In other words: Is there a better way of achieving the below
operation?
header = {trace, idum: 0L, ntrace: 0L, u: 0., v: 0., jdum: 0L}
chunk = {record,idum1: 0L, ncnt: 0L, idum2: 0L,
data1: {trace}, $
data2: {trace}, $
data3: {trace}, $
data4: {trace}, $
data5: {trace}, $
data6: {trace}, $
data7: {trace}, $
data8: {trace}, $
data9: {trace}}
wholefile = replicate({record},50000)
I want to be able declare data1 to data9 fields in a
array.
Thanks for your insight and time on this matter.
Ferhat F. Hatay
|
|
|