I have to write a class with a static int member but I do not wish to initialize this member until I need to use it in one of my functions.
Let say i have for example:
static int x;
I tried to initialize this by typing "int Classname::x=0; "in my function and it didn't work.
So how do I do this??