kit://-----------------------------------------------------------------------kit starts here
{
int a,h=200;
cin>>a;
cout<<endl;
h=h-a;
if(hp>=0)
{
cout<<"\n "<<hp<<"\\100";
}
else
{
cout<<"\n 0\\100\n\n";
cout<<" dead";
}
} //------------------------------------------------------------------kit ends here
goto kit;
now the real problem is that when someone dies(in the game of course :D) his/her/its "health point" is simply shown 0 and not a negative integer(sic).... also using the goto fuction i wont be able to proceed ahead in my program as the code will always force me to stay in kit......... what to do????
now the real problem is that when someone dies(in the game of course :D) his/her/its "health point" is simply shown 0 and not a negative integer(sic)
Well, yes. That's because your code checks the value of hp, and does different things depending on whether it's above 0 or not.
What do you want it to do?
also using the goto fuction i wont be able to proceed ahead in my program as the code will always force me to stay in kit
Don't use goto. Seriously. Unless you are very, very experienced in C++, and understand completely the implications of using it, and what the dangers are, and how to avoid those dangers, then it is very unwise to use it.
C++ provides many sensible control structures that are much better for a beginner to use that goto.