from the headerfile
//Output functions, sending messaages to the user void announceCard( int theCard); void announceHand( int theHand); void announceResult( bool side, int theHand); void whoWins(int playerHand, int houseHand);
from the sourcefile
void whoWins(playerHand, houseHand)
{
if ((playerHand > houseHand) && (playerHand <= 21))
{cout << "Player Wins" << endl;}
else if ((playerHand > houseHand) && (playerHand > 21))
{cout << "House Wins" << endl;}
else {cout << "House Wins" << endl;}
return;
}

New Topic/Question
Reply




MultiQuote




|