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 ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to