自制的抽卡模拟器

话不多说,看代码!

#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; 
			
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值