I''m having problems referencing my static variable declared in my struct:
say I have:
struct myStruct {
int number;
static int counter;
};
And I
myStruct *tmp;
tmp = new myStruct;
tmp->number = myStruct::counter; // problem
myStruct::counter++; // problem
I know the myStruct::counter is not right for referencing my struct... can anyone tell me how to do it?
---------------------
My specs (because I always forget to post them)
Intel P4 2.4 GHz
640 MB system memory
Radeon 9700 PRO
Windows XP
DirectX 9
DirectX 8.1 SDK
---------------------My specs (because I always forget to post them)Intel P4 2.4 GHz640 MB system memoryRadeon 9700 PROWindows XPDirectX 9DirectX 8.1 SDK