char Off[] = "Off"; doesnt work, generates this error:
C:\trigger state.cpp(8) : error C2258: illegal pure syntax, must be '= 0'
and I don't know what this means
char Off[] = "Off"; doesnt work, generates this error:
C:\trigger state.cpp(8) : error C2258: illegal pure syntax, must be '= 0'
and I don't know what this means
You're probably trying to initailize a member variable in the class declaration. It should be done in the constructor, as the class declaration does not *define* any storage to hold this value.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
yep