Do you have to use bool ?
if not there is a quick fix.
Quote:
void kill()
{
int x;
bool kill(0,1);
cout <<"Would you like to kill Frisky?\n ";
cin >>x;
if(kill = 1);
{
cout <<"Thump! \n";
}
if(kill = 0)
{
cout <<"Okay. *Swerves* \n";
}
}
|
void kill()
{
int x;
cout <<"Would you like to kill Frisky? 1 for Yes , 0 for No\n ";
cin >>x;
if(x == 1);
{
cout <<"Thump! \n";
}
if(x == 0)
{
cout <<"Okay. *Swerves* \n";
}
}
If you have to use bool let me know and I will see what I can do.