#include <bits/stdc++.h>
#include<windows.h>
#include<conio.h>
using namespace std;
int jy,lb,tq,js,ss=99999999,mm,kk=1,tt=12345
6,ww=123456,rr,qq;
int q=1000;
int dj=1,lb;
int djc=1,gjc,csc;
string zh,p;
int k;
int sc(){
cout<<"你有"<<djc<<"本低级手册"<<endl;
cout<<"你有"<<gjc<<"本高级手册"<<endl;
cout<<"你有"<<csc<<"本传说手册"<<endl;
cout<<"你要查看……1.低级手册,2.高级手册,3.传说手册"<<endl;
cin>>qq;
if(qq==1){
if(djc<1){
cout<<"你没有哦……"<<endl;
}
}
else if(qq==2){
}
else if(qq==3){
}
}
int nc(){
cout<<"你的农场是"<<dj<<"级";
if(dj>=1)cout<<"你有"<<lb<<"个萝卜"<<endl;
}
int main(){
cout<<"欢迎进入……………………"<<endl;
js++;
if(js==1){
cout<<"请输入账号:";
cin>>zh;
cout<<"请输入密码:";
cin>>mm;
//system("cls");//清屏
if(zh=="zhengkq"&&mm==ss){
cout<<"登录成功"<<endl;
tq=1;
system("cls");
}
else if(zh=="gonghao"&&mm==kk){
cout<<"登录成功"<<endl;
system("cls");
}
else if(zh=="fangyuying"&&mm==tt){
cout<<"登录成功"<<endl;
system("cls");
}
else if(zh=="cxx"&&mm==ww){
cout<<"登录成功"<<endl;
system("cls");
}
else {
cout<<"密码或账号错误/没有账号"<<endl;
js=0;
system("cls");
main();
}
}
srand(time(0));
//k=rand()%b+(a-1);
//Sleep(1000);//等待1秒
//x=getch();//秘密输入
cout<<"1开始冒险,2抽盲盒,3农场,100修改密码,101退出登录,4查看钱包,5手册";
cin>>k;
system("cls");
if(k==5){
sc();
}
else if(k==4){
cout<<q<<endl;
}
else if(k==101){
cout<<"退出成功"<<endl;
js=0;
if(zh=="zhengkq"){
tq=0;
}
system("cls");
}
else if(k==100){
if(tq==1){
cout<<"请输入你要修改的账号:"<<endl ;
cin>>p;
cout<<"输入新密码"<<endl;
if(p=="jianzhaoyan")cin>>ss;
else if(p=="JIANZHAOYAN")cin>>ww;
else if(p=="jzy")cin>>tt;
else if(p=="gonghao")cin>>kk;
else cout<<"账号错误/没有账号"<<endl,main();
cout<<"修改成功"<<endl;
}
else {
cout<<"你没有相应的特权!"<<endl;
}
}
else if(k==1){
}
else if(k==2){
cout<<"10元一抽,1一抽,2十抽,3不抽"<<endl;
cin>>rr;
if(rr==1){
if(q>=10){
k=rand()%20+(100-1);
cout<<k<<endl;
q-=10;
q+=k;
}
else cout<<"不够钱"<<endl;
}
else if(rr==2){
if(q>=100){
for(int i=1;i<=10;i++){
k=rand()%20+(100-1);
cout<<k<<endl;
q-=10;
q+=k;
}
}
else {
cout<<"不够钱"<<endl;
}
}
}
else if(k==3){
}
main();
return 0;
}

被折叠的 条评论
为什么被折叠?



