cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Uninitialized Local Variable
Uninitialized Local Variable
Nov 14, 2015 at 9:02am UTC
RandomGeek
(32)
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 ..
Nov 14, 2015 at 11:38am UTC
xenoviaquarta
(90)
it means you didnt initialize the warrior where it was declared as local.
Topic archived. No new replies allowed.