Uninitialized Local Variable

Hello I have a header file that is name Warrior.
I'm getting an error naming error C4700: uninitialized local variable 'warrior' used.Below is the code where it takes me when double click it on the error's tab.


 
  cout << "Warrior's HP: " << warrior->warriorHP << endl;


Pls. help me on what can I do to solve this problem, I really need it as soon as possible .. If you have any comments/questions pls. say so

Thanks in advance ..
it means you didnt initialize the warrior where it was declared as local.

Topic archived. No new replies allowed.