Thread overview
initialising inner struct
May 13, 2007
David Ferenczi
May 13, 2007
Manfred Nowak
May 13, 2007
David Ferenczi
May 13, 2007
I can't find out how to initialise the inner struct.

struct A
{
        int a;
        struc B
        {
                int b;
        }
}

A dataA = { a:0, ??? };

Could someone help me?

Thanks,
David
May 13, 2007
David Ferenczi wrote

> Could someone help me?

struct A
{
        int a;
        struct B
        {
                int b;
        }
       	B b; // needs a declaration
}

A dataA = { a:0, { b:0} };

-manfred
May 13, 2007
Manfred Nowak wrote:

> David Ferenczi wrote
> 
>> Could someone help me?
> 
> struct A
> {
>         int a;
>         struct B
>         {
>                 int b;
>         }
>        B b; // needs a declaration
> }
> 
> A dataA = { a:0, { b:0} };
> 
> -manfred

Hey, it was quick!
Many thanks!