help-gplusplus
[Top][All Lists]
Advanced

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

Re: structs and STL stack


From: Thomas Maeder
Subject: Re: structs and STL stack
Date: Fri, 17 Mar 2006 22:42:35 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

Christian Christmann <plfriko@yahoo.de> writes:

>> 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.


reply via email to

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