c++小游戏杀手1.1.3版本

1.1.3终于问世了,活动专栏随之出现,快来看看吧!#include<bits/stdc++.h>#include<iostream>#include<windows.h>int again,cho,num,about,fla=0,strc,cous=0,hod;int three=0,five=0,ten=0,dmon,dumo=0,paim=0,f...
摘要由CSDN通过智能技术生成

1.1.3终于问世了,活动随之出现,快来看看吧!

#include<bits/stdc++.h>
#include<iostream>
#include<windows.h>
int again,cho,num,about,fla=0,strc,cous=0,hod;
int three=0,five=0,ten=0,dmon,dumo=0,paim=0,fhk=0,kill=0,killd=0,can=0;
long long money=0;long shop[4],pric[5]={
   0,30,60,90};
int main()
{
   
if(paim==1&&killd==0) cous=1;
srand(time(NULL));
int b,p,x,c,d,e=0,f=0,g,h=0,i=1,j,l,m,n=5,o=0,flag=0,t1=0,t2=0,last=0;
int flog=0,tans=0,change=0,choo,ice,tangc=0,train,goch=0,game=1,choos=1;
if(paim!=0&&dumo==0) paim=0;
if(paim!=0&&dumo!=0)
{
   
 printf("你在赌场投注了赌金\n");Sleep(1000);
 switch(paim)
 {
   
  case 1:printf("恭喜恭喜!获得了200%的赌金!获得了%d元\n",dumo*3);money+=dumo*3;break;
  case 2:printf("祝贺祝贺!获得了100%的赌金!获得了%d元\n",dumo*2);money+=dumo*2;break;
  case 3:printf("很遗憾!只获得了全部投注的赌金!挽回了%d元\n",dumo);money+=dumo;break;
  default:printf("继续加油吧,赌金就被赌场收下了\n"); 
 }
 printf("\n");
 Sleep(3000);
 dumo=0;paim=0;
}
if(three==3) {
   
 printf("恭喜三连胜!\n");
 Sleep(1000);
 printf("我们为你准备了丰厚的奖品:150元,复活卡3张,冰冻卡2张,无敌卡1张\n\n");
 money+=150,shop[1]+=3,shop[2]+=2,shop[3]+=1;
 three=0;Sleep(3000);
}
if(five==5) {
   
 printf("恭喜五连胜!\n");
 Sleep(1000);
 printf("我们为你准备了丰厚的奖品:300元,复活卡6张,冰冻卡4张,无敌卡3张\n\n");
 money+=300,shop[1]+=6,shop[2]+=4,shop[3]+=3;
 five=0;Sleep(3000);
}
if(ten==10) {
   
 printf("恭喜十连胜!\n");
 Sleep(1000);
 printf("我们为你准备了丰厚的奖品:1000元,复活卡15张,冰冻卡12张,无敌卡10张\n\n");
 money+=1000,shop[1]+=15,shop[2]+=12,shop[3]+=10;
 ten=0;Sleep(3000);
}
printf("按1->开始游戏,按2->商店,按3->赌场,按4->活动专栏,按5->规则,按6->关于,按0->退出\n");
scanf("%d",&strc);
if(strc>6) {
   
 printf("请不要乱来!\n\n");
 Sleep(1000);return main();
}
if(strc==0) return 0;
if(strc==2) {
   
 printf("---------------------------------------------\n杀手商店---");
 printf("您现在有%d元\n",money);
 printf("复活卡30一张,您现在拥有%d张(购买:按1)\n",shop[1]);
 printf("冰冻卡60一张,您现在拥有%d张(购买:按2)\n",shop[2]);
 printf("无敌卡90一张,您现在拥有%d张(购买:按3)\n(返回主页:按4)\n",shop[3]);
 scanf("%d",&cho);
 if</
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值