I found this rather weird:
The above code returned these errors:Code:class monster { public: int hp,maxhp,attack,defense,exp,level;//stats }; monster monsters;
"E:\Tarasque\Archi\Main.cpp(55) : error C2146: syntax error : missing ';' before identifier 'monsters'
E:\Tarasque\Archi\Main.cpp(55) : error C2501: 'monster' : missing storage-class or type specifiers
E:\Tarasque\Archi\Main.cpp(55) : error C2040: 'monster' : 'int' differs in levels of indirection from 'struct SDL_Surface *'
E:\Tarasque\Archi\Main.cpp(55) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
Archi.exe - 4 error(s), 0 warning(s)"
I found that if you change the class name from "monster" to "montr" or "monster1" (etc etc) it works...just not at "monster"...weird. Any of you have any answers?
//napKIN