Hi
Initializing an array of structures that contain only the built in types
seems pretty straightforward e.g.
typedef struct {
int x;
int y;
int z;
}FooType;
FooType foo[3]={1,2,3,
4,5,6,
7,8,9};
but I have a structure that contains a few user-defined types e.g
typedef struct {
int x;
int y;
MyClass mc;
} MyStruct;
I now want to intialize an array of MyStruct structs, in the declaration of
this array.
e.g.
MyStruct[]={1,2,?,
3,4,?,
4,5,?};
Is this possible in C++
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
- RE: Initializing array of objects in declaration Garth Watkins
- RE: Initializing array of objects in declaration Richard Anderson
- RE: Initializing array of objects in declaration Philippe GRAILLE
- Re: Initializing array of objects in declaration Garth Watkins
- Re: Initializing array of objects in declaration Jabavu W. Adams
- Re: Initializing array of objects in declaration Jabavu W. Adams
