#include<bits/stdc++.h>
using namespace std;
int a2,b2;
string a,b;
int c,je=50;
void cj(int a3,int b3){
b3=rand()%10+1;
cout<<"请稍等......"<<endl;
cout<<"请输入一个1~10的数:"<<endl;
cin>>a3;
if(a3==b3){
je+=20;
}else{
if(a3!=10){
if(a2>10){
cout<<"对不起,您的输入有错,处罚5元,下次别搞系统了!!!";
je-=5;
}else{
je-=5;
}
}
}
system("cls");
}
int main(){
system("pause");
for(int i=0;i<=100;i++){
cout<<"加载进度"<<"("<<i<<"/100)" ;
if(i!=100){
system("cls");
}
else{
cout<<endl<<"目标完成,加载完毕";
}
}
cout<<endl;
system("cls");
cout<<"hi,欢迎来到抽奖模拟器"<<endl;
system("pause");
system("cls");
for(;;){
cout<<"您的金额:"<<je<<endl
<<"您要做什么"<<endl
<<"1.抽奖 2.退出"<<endl;
cin>>c;
if(c==1){
cj(a2,b2);
}if(c==2){
cout<<"欢迎下次再来!";
return 0;
}
if(je==0||je<0){
cout<<"没钱了,重来吧!";
return 0;
}
}
return 0;
}
08-05
446
