[Top][All Lists]

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

Re: structs and STL stack

From: Christian Christmann
Subject: Re: structs and STL stack
Date: Sat, 18 Mar 2006 01:04:51 +0100

>>>> 1. you generally want to divorce type declarations and variable
>>>> declarations.
>>> Sorry, but what do you exactly mean by that?
>> This:
>>>         struct storeInfo {
>>>           int a;
>>>         } structInfo;
>> defines both a type storeInfo and an object structInfo of that type. He
>> suggests that you first define the type and then the object, in separate
>> statements.
> Thanks, Thomas.  I missed his question on that.

Thank you. Are there any disadvantages/potential problems when defining
the struct type and directly initialize it in the same statement as can
be seen above?

reply via email to

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