Try It.
> -----Original Message-----
> From: Garth Watkins [SMTP:[EMAIL PROTECTED]]
> Sent: 20 November 2000 16:47
> To: Palm Developer Forum
> Subject: Initializing array of objects in declaration
>
> 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/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/