抽奖小程序:原创,密码114514

#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main()
{
	int doubi=10;
	system("color 0A");
	sy:
	if(doubi==0){
		cout<<"作者:兜兜"<<endl;
		Sleep(500);
		cout<<"你的兜币数量像蛋仔的小黄蛋...";
		Sleep(300);
		return 1;
	}
	cout<<"兜币数量:"<<doubi<<endl;
	cout<<"开始游戏输入1"<<endl;
	cout<<"调整语言输入2(暂不支持)"<<endl;
	int yes;
	cin>>yes;
	system("cls");
	cout<<"密码思密达:";
	int mima;
	cin>>mima;
	if(mima==114514){
		cout<<"Welcome back to 兜兜的抽奖点,114514";
		Beep(750,400);
		Beep(800,500);
		Beep(520,200);
		Beep(520,825);
		Sleep(500);
		system("cls");
		srand(time(0));
		int sjs;
		sjs=rand()%5000+1;
		int a;
		cin>>a;
		doubi--;
		if(a==sjs){
			cout<<"你真的太NB啦!中中中中中奖号码是:"<<sjs;
			Sleep(1000);
			system("cls");
			doubi+=5;
			goto sy;
			}
		else if(abs(sjs-a)<=50){
			cout<<"还八错!中中中奖号码是:"<<sjs;
			Sleep(3000);
			system("cls");
			doubi+=3;
			goto sy;
			}
		else if(abs(sjs-a)<=300){
			cout<<"That\'s good,中奖号码是:"<<sjs;
			Sleep(3000);
			system("cls");
			doubi++;
			goto sy;
			}
		else{
			cout<<"...... "<<sjs;
			Sleep(3000);
			system("cls");
			goto sy;}
	}
	
	
	
	
    return 0;
}

  • 5
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值