What exactly are you trying to do on line 7?
when you declare a static var in a class, it needs to be declared outside the class, so it has memory assignment.
most of people forgot it, but that's not the problem
Yes, but put the actual instantiation of var inside a .cpp file, not in the header file. Variables in header files are EVIL.
Line 6 has a missing semicolon, then.
And so does line 17.
Last edited on