话不多说,看代码!
#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;