c语言。修改。21点的牌类游戏[代码太大分两次发].part02
答案:1 悬赏:60
解决时间 2021-04-07 01:43
- 提问者网友:深爱及嗨
- 2021-04-06 08:33
else
printf("
return cardDrawn;Queen",", int cards[52])
{
int cardDrawn;%s\= total[DEALER]) && (total[PLAYER] <);),total[DEALER]);
if(cardDrawn == 1)
{
printf("You wins;
points[ACEHIGH] += 10;
getchar();
cards[subDraw] = cards[*numCards - 1]
(*numCards);%s\King"
ans = getchar();
points[ACELOW] += 10,"%s%c"
return;%s";
return toupper(ans); 25)
{printf(");
while (i <
return;
printf(" 21) && (total[PLAYER]) > 21)
{printf("
printf("
}
}
return;n");n"
break;
}
if((total[DEALER]) >
case(13) ;: points[ACELOW] += cardDrawn;%d\n"
}
if((total[DEALER] >You have a total of %d\
subDrawn = (rand() % (*numCards));
points[ACEHIGH] += 10;
points[ACEHIGH] += 10; 21)
{printf(", cards););Ace"
}
}
char getAns(char mesg[])
{
char ans;
}
void dispTitle(void)
{
int i = 0,BELL);
}
void dispCard(itn cardDrawn;
break;;
i++void dealerGetsCard(int * numCards;);
default ;
cardDrawn = cards[subDraw];: printf("Nobody wins,"
dispCard(newcard;%s","Jack"n"
return;\
break;);
else
total[who] = points[ACEHIGH];%s\;
}
else
{
points[ACEHIGH] += cardDrawn;n": printf("The house stands with a total of %d\
points[ACELOW] += 10;
return,cardDrawn);;%s\.\
}
if((total[PLAYER]) >
printf("
}
return;);n\
}
void findWinner(int total[2])
{
if(total[DEALER] == 21)
{printf(", int playerPoints[2])
{
int newCard;= total[PLAYER]) && (total[DEALER] <n"n"n"n"
}
void totalIt(int points[2];The house wins.\: printf("
srand((unsigned)time(NULL));n"
newCard = dealCard(numCards;, "
}
int dealCard(int * numCards, int total[2];
points[ACEHIGH] += 11;n", dealerPoints);), int points[2])
{
switch (cardDrawn)
{
case(11) ;The dealer draw,mesg);The house wins;
return,total[PLAYER]);n": "
if(who == PLAYER)
printf(".\,", subDraw;;
case(12) ;
points[ACELOW] += 10;; 21)
{printf("n\, int who)
{
if((points[ACELOW] == points[ACEHIGH]) || (points[ACEHIGH] >.\ 21))
total[who] = points[ACELOW], int cards[52]
最佳答案
- 二级知识专家网友:说多了都是废话
- 2021-04-06 08:52
21
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯
• 手机登qq时,显示手机磁盘不足,清理后重新登 |
• 刺客的套装怎么选啊? |