#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;
}
抽奖小程序:原创,密码114514
最新推荐文章于 2024-08-30 11:28:00 发布