Hello,
How would I take the below fuction and make it so you get two cards to start with and then It gives you the option to draw another?
Thank You For Your Help,
Matt
int DealUser(){
int NumCards;
cout <<"How Many Cards Do You Want? ";
NumCards=2;
cout <<"You: ";
int CardCount, Card, SumCards = 0;
do{
Card = DealCard();
cout<<Card<<" ";
SumCards+=Card;
cout <<"="<<SumCards<<endl;
char dealcardanswer;
cout <<"Another Card? (y,n)";
cin >> dealcardanswer;
}while (dealcardanswer != 'n');
return(SumCards);
}



LinkBack URL
About LinkBacks



