-
global classes?????
Hi,
I am having problems with my classes being available globally to all my source files. I have had help from the gamedev forums which have got me halfway there but now i am getting major compile errors where before i had none! If someone who knows more than me about c++ ( probably anyone! ) could have a look at my code and tell me where i am going wrong or how i could do things better in regards to using my class, i would be very grateful!
I have recently discovered STL Vectors and classes so i have made a class that i use to create a vector, and load words into the class and i have a function in the class that jumbles the word randomly.
the line " while ((CWORD::jumbledword) == (CWORD::word));"
in the file CWord.h is causing huge problems now where as before it was not a problem. Error code "C2784" with visual c++ compiler. There imust be atleast 30 errors on the same line, all C2784 :(
and there are also errors in the game.cpp file in regards to my vector. If anyone can help me i would appreciate it!
Thanks for your time!
Werdy666:D
-
I'm going to have a look at it then post a reply tommorrow.