Alright I am continuing my text based game. I have created a class for weapons and while all the code is in one single file it compiles and runs fine. However, recently I have been reading up on classes and found out that it's better to put class definitions in a .h file, put the member definitions in a different .cpp file and simply #include it with your main program. Both my .h and .cpp file inlude the "weapons.h" but it is giving me errors. I think this is because I am using global variables in the int main(); program in my .cpp file cause that is where I am getting a bunch of 'undeclared' errors. Should I just make another class for all my global variables and use inheritance or make my global variables in int main(); pointers?