'>>> Page 3 of SLOT.CPP begins here.
cout << Name << " has " << Cash << " dollars left." << '\n';
}
void Player::Collect(int Amount){
Cash = Cash + Amount;
cout << Name << " has " << Cash << " dollars!" << '\n';
}
int main(){
Player* suckerP = new Player;
SlotMachine* machineP = new SlotMachine;
do{
machineP->DropHandle();
if (machineP->Win()){
cout << "**WINNER!**" << '\n';
suckerP->Collect(machineP->Jackpot);
}
else
suckerP->Pay(machineP->Bet);
}
while (suckerP->SpinAgain());
delete (machineP);
delete (suckerP);
return (0);
}
'>>> Page 3 of SLOT.CPP ends here. Last page.
*Penguin: The headwaiter of the Antarctic.
blm
--- FLAME v1.1
---------------
* Origin: Purgatoire BBS, 719-846-0140, Trinidad, CO, V.34 (1:15/7)
|