Thread: void(); issues
View Single Post
Old 12-15-2002, 05:42 PM   #2 (permalink)
DesertWolf
Non-profit Techie
 
DesertWolf's Avatar
 
Join Date: Dec 2002
Location: Mesa AZ
Posts: 76
DesertWolf is on a distinguished road
Send a message via AIM to DesertWolf
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.
DesertWolf is offline   Reply With Quote