话不多说,看代码!
#include<bits/stdc++.h> #include<windows.h> #include<stdlib.h> using namespace
std; int main() { int A,j,gzj,a1; cout<<"火影抽卡模拟器启动中……"<<endl; Sleep(2 * 1000);
FLAG: cout<<"1.肝日常"<<endl<<"2.购买高招卷"<<endl<<"3.抽卡"<<endl; cin>>A; if(A==1) {
FLAG1: A=0;
cout<<"1.肝一天"<<endl<<"2.肝一周"<<endl<<"3.肝一月"<<endl<<"4.肝一年"<<endl<<"5.退出日常"<<endl;
cin>>A; if(A==1) { A=0; cout<<"肝……"<<endl; Sleep(0.5 * 1000); j+=300;
cout<<"你获得了300金币"<<endl; cout<<"加载中……"<<endl; Sleep(0.5 * 1000); goto FLAG1; }
else { if(A==2) { A=0; cout<<"肝……"<<endl; Sleep(1 * 1000); j+=2000;
cout<<"你获得了2000金币"<<endl; cout<<"加载中……"<<endl; Sleep(0.5 * 1000); goto FLAG1; }
else { if(A==3) { A=0; cout<<"肝……"<<endl; Sleep(3 * 1000); j+=10000;
cout<<"你获得了10000金币"<<endl; cout<<"加载中……"<<endl; Sleep(0.5 * 1000); goto FLAG1;
} else { if(A==4) { A=0; cout<<"肝……"<<endl; Sleep(4 * 1000); cout<<"肝……"<<endl;
Sleep(4 * 1000); j+=150000; cout<<"你获得了150000金币"<<endl; cout<<"加载中……"<<endl;
Sleep(0.5 * 1000); goto FLAG1; } else { if(A==5) { A=0; cout<<"加载中……"<<endl;
Sleep(0.5 * 1000); goto FLAG; } else { cout<<"无效……"<<endl; Sleep(0.5 * 1000);
goto FLAG1; } } } } } } else { if(A==2) { FLAG2: A=0;
cout<<"1.买一张"<<endl<<"2.买十张"<<endl<<"3.买五十张"<<endl<<"4.买一百张"<<endl<<"5.退出购买"<<endl;
cin>>A; if(A==1) { A=0; if(j>=168) { j-=168; gzj+=1; cout<<"你获得了1张高招卷"<<endl;
cout<<"加载中……"<<endl; Sleep(0.5 * 1000); goto FLAG2; } else {
cout<<"你的金币不足"<<endl; cout<<"加载中……"<<endl; Sleep(0.5 * 1000); goto FLAG2; } }
else { if(A==2) { A=0; if(j>=1680) { j-=1680; gzj+=10;
cout<<"你获得了10张高招卷"<<endl; cout<<"加载中……"<<endl; Sleep(0.5 * 1000); goto FLAG2; }
else { cout<<"你的金币不足"<<endl; cout<<"加载中……"<<endl; Sleep(0.5 * 1000); goto
FLAG2; } } else { if(A==3) { A=0; if(j>=8400) { j-=8400; gzj+=50;
cout<<"你获得了50张高招卷"<<endl; cout<<"加载中……"<<endl; Sleep(0.5 * 1000); goto FLAG2; }
else { cout<<"你的金币不足"<<endl; cout<<"加载中……"<<endl; Sleep(0.5 * 1000); goto
FLAG2; } } else { if(A==4) { A=0; if(j>=16800) { j-=16800; gzj+=100;
cout<<"你获得了100张高招卷"<<endl; cout<<"加载中……"<<endl; Sleep(0.5 * 1000); goto FLAG2;
} else { cout<<"你的金币不足"<<endl; cout<<"加载中……"<<endl; Sleep(0.5 * 1000); goto
FLAG2; } } else { if(A==5) { A=0; cout<<"加载中……"<<endl; Sleep(0.5 * 1000); goto
FLAG; } else { cout<<"无效……"<<endl; Sleep(0.5 * 1000); goto FLAG2; } } } } } }
else { if(A==3) { FLAG3: A=0;
cout<<"1.抽一次"<<endl<<"2.十连抽"<<endl<<"3.退出招募"<<endl; cin>>A; if(A==1) { A=0;
if(gzj>=1) { gzj-=1; srand((UINT)GetCurrentTime()); a1=rand()%100+1; if(a1<=5)
{ srand((UINT)GetCurrentTime()); a1=rand()%100+1; if(a1<=30) { Sleep(0.5 *
1000); cout<<"秽土水门碎片*5"<<endl; } else { Sleep(0.5 * 1000);
cout<<"秽土水门碎片*1"<<endl; } a1=0; } else { if(a1<=10) {
srand((UINT)GetCurrentTime()); a1=rand()%100+1; if(a1<=30) { Sleep(0.5 * 1000);
cout<<"半蛇兜碎片*4"<<endl; } else { Sleep(0.5 * 1000); cout<<"半蛇兜碎片*1"<<endl; }
a1=0; } else { if(a1<=20) { srand((UINT)GetCurrentTime()); a1=rand()%100+1;
if(a1<=30) { Sleep(0.5 * 1000); cout<<"飞段碎片*4"<<endl; } else { Sleep(0.5 *
1000); cout<<"飞段碎片*1"<<endl; } a1=0; } else { if(a1<=50) {
srand((UINT)GetCurrentTime()); a1=rand()%100+1; if(a1<=30) { if(a1=10) {
Sleep(0.5 * 1000); cout<<"B忍整卡*1"<<endl; } else { Sleep(0.5 * 1000);
cout<<"B忍碎片*2"<<endl; } } else { if(a1<=50) { Sleep(0.5 * 1000);
cout<<"C忍整卡*1"<<endl; } else { Sleep(0.5 * 1000); cout<<"C忍碎片*5"<<endl; } }
a1=0; } } } } cout<<"加载中……"<<endl; Sleep(0.5 * 1000); goto FLAG3; } else {
cout<<"你的高招卷不足"<<endl; cout<<"加载中……"<<endl; Sleep(0.5 * 1000); goto FLAG3; } }
else { if(A==2) { A=0; if(gzj>=10) { gzj-=10; for(int i=0;i<10;i++) {
srand((UINT)GetCurrentTime()); a1=rand()%100+1; if(a1<=5) {
srand((UINT)GetCurrentTime()); a1=rand()%100+1; if(a1<=30) { Sleep(0.5 * 1000);
cout<<"秽土水门碎片*5"<<endl; } else { Sleep(0.5 * 1000); cout<<"秽土水门碎片*1"<<endl; }
a1=0; } else { if(a1<=10) { srand((UINT)GetCurrentTime()); a1=rand()%100+1;
if(a1<=30) { Sleep(0.5 * 1000); cout<<"半蛇兜碎片*4"<<endl; } else { Sleep(0.5 *
1000); cout<<"半蛇兜碎片*1"<<endl; } a1=0; } else { if(a1<=20) {
srand((UINT)GetCurrentTime()); a1=rand()%100+1; if(a1<=30) { Sleep(0.5 * 1000);
cout<<"飞段碎片*4"<<endl; } else { Sleep(0.5 * 1000); cout<<"飞段碎片*1"<<endl; } a1=0;
} else { if(a1<=50) { srand((UINT)GetCurrentTime()); a1=rand()%100+1;
if(a1<=30) { if(a1=10) { Sleep(0.5 * 1000); cout<<"B忍整卡*1"<<endl; } else {
Sleep(0.5 * 1000); cout<<"B忍碎片*2"<<endl; } } else { if(a1<=50) { Sleep(0.5 *
1000); cout<<"C忍整卡*1"<<endl; } else { Sleep(0.5 * 1000); cout<<"C忍碎片*5"<<endl;
} } a1=0; } } } } } cout<<"加载中……"<<endl; Sleep(0.5 * 1000); goto FLAG3; } else
{ cout<<"你的高招卷不足"<<endl; cout<<"加载中……"<<endl; Sleep(0.5 * 1000); goto FLAG3; }
} else { if(A==3) { A=0; cout<<"加载中……"<<endl; Sleep(0.5 * 1000); goto FLAG; }
else { cout<<"无效……"<<endl; Sleep(0.5 * 1000); goto FLAG3; } } } } else {
cout<<"无效……"<<endl; Sleep(0.5 * 1000); goto FLAG; } } } }

技术
友情链接
码工具
Toolsou
API参考文档
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:ixiaoyang8@qq.com
QQ群:766591547
关注微信