Ok, So I've just got the hang of working with header files, and source files together. I am making a text game, to better learn how header files work with the source files. I made a header file called race.h for the different races. And in this headerfile is the class race. In the class I have a bunch of int variables for max health,stamina, etc. I also want to have a string or array declared in this class. But is it "ok" to include <string> in my custom header file? I am doing this because it will declare a name variable. Ex. string NAME;. So is it ok to do this?



LinkBack URL
About LinkBacks



CornedBee