Hi,

you can use a pointer to your structure but not the strucuture. 
when you intialize you put Null value.

By.

> -----Message d'origine-----
> De:   Garth Watkins [SMTP:[EMAIL PROTECTED]]
> Date: lundi 20 novembre 2000 17:47
> �:    Palm Developer Forum
> Objet:        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/

Reply via email to