%%%
2026-04-29 10:50:58
发布于:浙江
#include<bits/stdc++.h>
#include<Windows.h>
using namespace std;
int main(){
a:
system("cls");
int x;
cout<<"不可能过的游戏(0-布吉岛 猜数字坑人版)\n1->开始\n2->规则\n->";
cin>>x;
if(x==2){
system("cls");
cout<<"每局数据与数据范围刷新,随机输出猜大了或猜小了\n";
system("pause");
goto a;
}
while(1){
system("cls");
int m=rand();
int j=rand()%m;
int n=rand()%j;
cout<<"范围:\n0-"<<j-1<<"\n->";
cin>>x;
if(x==n){
cout<<"我去,猜对了!!!\n";
Sleep(1000);
system("cls");
cout<<"1->再来一把\n2->离开\n->";
cin>>x;
if(x==1)goto a;
else break;
}
if(rand()%2)cout<<"猜大了!\n";
else cout<<"猜小了!\n";
system("pause");
}
}
这里空空如也






















有帮助,赞一个