SyntaxFix
Write A Post
Hire A Developer
Questions
Not just int's. But you can't define the value in the class declaration. If you have:
class classname { public: static int const N; }
in the .h file then you must have:
int const classname::N = 10;
in the .cpp file.