>>>> 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? _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus