S
SteveM
This is probably an easy answer but since I am fairly new to C++ for
some reason I can't see it :-( Any help would be appreciated
I have a class:
class AClass
{
public:
.
. (some functions)
private:
struct PData
{
static int aValue;
static int bValue;
}
}
I am clueless as to how to format the definition. Everything I have
tried up till now has been flagged by the compiler
Please Help
BTW What I am needing to do is make the variables of the struct
available to static functions (in public of this class). if I need to
make the struct static also or just need the struct static but not the
members I really dont care. The ultimate goal here is to 1.) get
something to work 2.) Get a better understanding of how C++ does things
(such as static structs or static members of structs)
Thanks for the help
some reason I can't see it :-( Any help would be appreciated
I have a class:
class AClass
{
public:
.
. (some functions)
private:
struct PData
{
static int aValue;
static int bValue;
}
}
I am clueless as to how to format the definition. Everything I have
tried up till now has been flagged by the compiler
Please Help
BTW What I am needing to do is make the variables of the struct
available to static functions (in public of this class). if I need to
make the struct static also or just need the struct static but not the
members I really dont care. The ultimate goal here is to 1.) get
something to work 2.) Get a better understanding of how C++ does things
(such as static structs or static members of structs)
Thanks for the help