help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: struct member initialization


From: fernspaanakker
Subject: Re: struct member initialization
Date: 2 Jan 2007 23:18:57 -0800
User-agent: G2/1.0

I also have a followup: What if the struct is anonymous? Can you still
initialize then?

Example (made it more complicated by making it part of an anonymous
union):

    union
    {
        uint strLen;
        struct
        {
            char localString[LOCALSTRINGSIZE];
            ushort localStrLen;
        };
    };

Greetings, Ferns.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]