本文来自优.文'论-文·网原文请找腾讯3249-114
s1+=7;
else
s1+=n1<n2?n1:n2;
printf("1号得分:%d\n",s1);
printf("2号 ,要玩吗?'Y' or 'N'\n",com论文范文http://www.chuibin.com/ puter);
ch = getch();
if(ch!='y'&&ch!='Y') break;
n1=rand()%6+1,n2=rand()%6+1;
printf("2号掷出了%d,%d点.\n",n1,n2);
if((n1==n2)&&(n1==6))
s2+=8;
else if((n1==n2)&&(n1!=6))
s2+=7;
else
s2+=n1<n2?n1:n2;
printf("2号得分:%d\n",s2);
}
if(s2<s1)
{
n1=rand()%6+1,n2=rand()%6+1;
printf("现在2号坐庄,你掷出了%d,%d点\n",n1,n2);
if((n1==n2)&&(n1==6))
s2+=8;
else if((n1==n2)&&(n1!=6))
s2+=7;
else
s2+=n1<n2?n1:n2;
printf("2号得分:%d\n",s2);
n1=rand()%6+1,n2=rand()%6+1;
printf("1号掷出了%d,%d点.\n",n1,n2);
if((n1==n2)&&(n1==6))
s1+=8;
else if((n1==n2)&&(n1!=6))
s1+=7;
else
s1+=n1<n2?n1:n2;
printf("1号得分:%d\n",s1);
}
if(s1<s2)
{
printf("2号分数领先,要继续吗?'Y' or 'N'\n",computer); flag=1;