Hi. I am making a consle rpg, but I have a problem. I am getting "C2143: syntax error : missing ';' before '.'". The problem is in this line "hero.attribute [ATR_HEALTH] = 10;". I included the header file with the class. Sorry if it is a noob question. Can someone help me?
Here are the contents of the header:
There isn't any problem with the code you have posted. You probably have a mistake in your main() function. So if you'd post the main code, I can try to help you further.