I wanted you guys to review my player class code to see if it is correct or if I need to add anything to it. I used the same variables as the main program. I apologize for not responding to emails. I will work on it from here on out.
class Player
{
protected:
double chipsToBet;
int card_total;
bool playerChoice;
double chipsToPlay;
public:
Player(double chipsToBet, int card_total, bool playerChoice, double chipsToPlay)
{
chipsToBet = 0.0;
card_total = 0;
playerChoice = 0;
chipsToPlay = 0.0;
}
I wanted you guys to review my player class code to see if it is correct or if I need to add anything to it. I used the same variables as the main program. I apologize for not responding to emails. I will work on it from here on out.
class Player { protected: double chipsToBet; int card_total; bool playerChoice; double chipsToPlay; public: Player(double chipsToBet, int card_total, bool playerChoice, double chipsToPlay) { chipsToBet = 0.0; card_total = 0; playerChoice = 0; chipsToPlay = 0.0; }
};