Just a random question about static structs
since this struct is static shouldn't I be able to reference data members without initialization?
static struct info
is something like this even possible?
info.number = 1;
Whatever you're doing with that top code box, knock it off. It's hard to read.
No, static in C isn't the same as making static members in C++. Static defines the scope of the variable. You aren't actually declaring a variable, so how you are using static is wrong, and, your compiler will tell you as much.
... I'm not sure what happened with the top code box (I assume you're talking about the fact that it scrolls), I guess I shouldn't have used the indent tag inside of a code tag... Maybe one of the mods or admins can address this issue?
It's non-sensical , since "info" (properly, struct info) is a type, like:
Originally Posted by aosmith