SyntaxFix
Write A Post
Hire A Developer
Questions
To initialize a static variable, you just do so inside of a source file. For example:
//Foo.h class Foo { private: static int hello; }; //Foo.cpp int Foo::hello = 1;