#include <iostream>
#include <windows.h>
#include <cstdlib>
#include <ctime>
using namespace std;
int main()
{/*开始教程*/ system("title Brizza ");system("color 0f");Sleep(50);system("color 1f");Sleep(50);system("color 2f");Sleep(50);system("color 3f");Sleep(50);system("color 4f");Sleep(50);system("color 5f");Sleep(50);system("color 6f");Sleep(50);system("color 7f");Sleep(50);system("color 8f");Sleep(50);cout<<"欢迎来到Brizza 3.0.34.251版本"<<endl;Sleep(1000);cout<<"你的名字是";char name[1];cin>>name;cout<<"欣欣助理:你好";Sleep(250);cout<<name<<",欢迎来到当铺人生"<<endl; Sleep(500);cout<<"欣欣助理:这是2000¥开店资助费"<<endl;Sleep(500); long long break1=0;long long break2=0;long long int xq=0;/*个人变量*/long long int jinqian=2000; long long int shengwang=0; long long int xueshi=0;long long int defen=1000; long long int sccp=rand()%10000;//产品 /*开始当铺*/long long kai_zuhe[100000];for (char kai=0;kai<=1;kai++){for (long long int day=1;day>=1;day++){xq++;if (xq==8){xq=1;}if (jinqian==0){cout<<"你没钱了"<<endl;cout<<"Game over"<<endl;break1=90;break;}cout<<"------------------------"<<endl;cout<<"1.开店"<<endl;cout<<"2.升级角色"<<endl;cout<<"3.活动"<<endl;cout<<"4.开挂"<<endl;if (xq==5&&defen>=500){Sleep(500);system("color 0f");Sleep(50);system("color 1f");Sleep(50);system("color 2f");Sleep(50);system("color 3f");Sleep(50);system("color 4f");Sleep(50);system("color 5f");Sleep(50);system("color 6f");Sleep(50);system("color 7f");Sleep(50);system("color 8f");Sleep(50);cout<<"今天有拍卖会"<<endl; } cout<<"你的选择是:";cin>>kai_zuhe[kai]; Sleep(500);if (kai_zuhe[kai]==1){Sleep(500); cout<<"第"<<day<<"天"<<endl;cout<<"星期"<<xq<<endl;Sleep(500);long long q1=2;if (shengwang>=10){q1=3;}if (shengwang>=30){q1=5;}if (shengwang>=60){q1=6;}if (shengwang>=100){q1=9;}if (shengwang>=150){q1=10;}for (int q=1;q<=q1;q++){ if (jinqian<=5000){srand((int)time(0));long long huayu=rand()%5; cout<<"卖家:";if (huayu==0){cout<<"........随你......"<<endl;}if (huayu==1){cout<<"帮我看看,你想要的话,开个价吧"<<endl; }if (huayu==2){cout<<"这是个好东西,对你是有用的"<<endl; }if (huayu==3){cout<<"我这里有个好东西你看看,你保证会喜欢上它"<<endl;}if (huayu==4){cout<<"每个人都不好过,多点...多点..."<<endl;} if (huayu==5){cout<<"我给你说,这个其他家都急着抢呢"<<endl;}Sleep(500);long long wu=rand()%1000; cout<<"估价:"<<wu<<endl;Sleep(500);cout<<"你的定价是:";long ding;cin>>ding;Sleep(500);if (ding>jinqian){cout<<"你没有这么多钱"<<endl;Sleep(500);cout<<"你的定价是:";long ding3;cin>>ding3;if (ding3<=jinqian){long long dd=wu*0.8;if (ding3>=dd){cout<<"卖家:嗯...我想我能接受"<<endl;jinqian-=ding3; Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding3<<endl;long long int mai,jg=ding3*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding3*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:不可能,我建议你不要少于"<<dd<<"¥"<<endl; Sleep(500);cout<<"卖家:你再看看"<<endl;long long ding2;cin>>ding2;if (ding2>jinqian){cout<<"你没有这么多钱"<<endl;Sleep(500);cout<<"卖家看你迟迟不说话,悄悄地走了"<<endl; shengwang-=1;defen+=10;}if (ding2<=jinqian){if (ding2>=dd){cout<<"卖家:嗯...我想我能接受"<<endl; jinqian-=ding2;Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding2<<endl;long long int mai,jg=ding3*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding2*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:我想我们没法谈生意了"<<endl;Sleep(500);cout<<"交易失败,你还有"<<jinqian<<"¥"<<endl; shengwang-=2;defen+=10;}}}}}if (ding<=jinqian){long long dd=wu*0.8;if (ding>=dd){cout<<"卖家:嗯...我想我能接受"<<endl; jinqian-=ding;Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding<<endl;long long int mai,jg=ding*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:不可能,我建议你不要少于"<<dd<<"¥"<<endl; Sleep(500);cout<<"卖家:你再看看"<<endl;long long ding2;cin>>ding2;if (ding2>jinqian){cout<<"你没有这么多钱"<<endl;}if (ding2<=jinqian){if (ding2>=dd){cout<<"卖家:嗯...我想我能接受"<<endl; jinqian-=ding2;Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding2<<endl;long long int mai,jg=ding2*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding2*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:我想我们没法谈生意了"<<endl;Sleep(500);cout<<"交易失败,你还有"<<jinqian<<"¥"<<endl; shengwang-=1;defen+=10;}}}}}if (jinqian>=10000&&jinqian<=200000){srand((int)time(0));long long huayu=rand()%5; cout<<"卖家:";if (huayu==0){cout<<"........随你......"<<endl;}if (huayu==1){cout<<"帮我看看,你想要的话,开个价吧"<<endl; }if (huayu==2){cout<<"这是个好东西,对你是有用的"<<endl; }if (huayu==3){cout<<"我这里有个好东西你看看,你保证会喜欢上它"<<endl;}if (huayu==4){cout<<"每个人都不好过,多点...多点..."<<endl;} if (huayu==5){cout<<"我给你说,这个其他家都急着抢呢"<<endl;}Sleep(500);long long wu=rand()%7000; cout<<"估价:"<<wu<<endl;Sleep(500);cout<<"你的定价是:";long ding;cin>>ding;Sleep(500);if (ding>jinqian){cout<<"你没有这么多钱"<<endl;Sleep(500);cout<<"你的定价是:";long ding3;cin>>ding3;if (ding3<=jinqian){long long dd=wu*0.8;if (ding3>=dd){cout<<"卖家:嗯...我想我能接受"<<endl;jinqian-=ding3; Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding3<<endl;long long int mai,jg=ding3*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding3*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:不可能,我建议你不要少于"<<dd<<"¥"<<endl; Sleep(500);cout<<"卖家:你再看看"<<endl;long long ding2;cin>>ding2;if (ding2>jinqian){cout<<"你没有这么多钱"<<endl;Sleep(500);cout<<"卖家看你迟迟不说话,悄悄地走了"<<endl; shengwang-=1;defen+=10;}if (ding2<=jinqian){if (ding2>=dd){cout<<"卖家:嗯...我想我能接受"<<endl; jinqian-=ding2;Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding2<<endl;long long int mai,jg=ding3*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding2*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:我想我们没法谈生意了"<<endl;Sleep(500);cout<<"交易失败,你还有"<<jinqian<<"¥"<<endl; shengwang-=1;defen+=10;}}}}}if (ding<=jinqian){long long dd=wu*0.8;if (ding>=dd){cout<<"卖家:嗯...我想我能接受"<<endl; jinqian-=ding;Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding<<endl;long long int mai,jg=ding*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:不可能,我建议你不要少于"<<dd<<"¥"<<endl; Sleep(500);cout<<"卖家:你再看看"<<endl;long long ding2;cin>>ding2;if (ding2>jinqian){cout<<"你没有这么多钱"<<endl;}if (ding2<=jinqian){if (ding2>=dd){cout<<"卖家:嗯...我想我能接受"<<endl; jinqian-=ding2;Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding2<<endl;long long int mai,jg=ding2*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding2*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:我想我们没法谈生意了"<<endl;Sleep(500);cout<<"交易失败,你还有"<<jinqian<<"¥"<<endl; shengwang-=1;defen+=10;}}}}}if (jinqian>=500000){srand((int)time(0));long long huayu=rand()%5; cout<<"卖家:";if (huayu==0){cout<<"........随你......"<<endl;}if (huayu==1){cout<<"帮我看看,你想要的话,开个价吧"<<endl; }if (huayu==2){cout<<"这是个好东西,对你是有用的"<<endl; }if (huayu==3){cout<<"我这里有个好东西你看看,你保证会喜欢上它"<<endl;}if (huayu==4){cout<<"每个人都不好过,多点...多点..."<<endl;} if (huayu==5){cout<<"我给你说,这个其他家都急着抢呢"<<endl;}Sleep(500);long long wu=rand()%120000; cout<<"估价:"<<wu<<endl;Sleep(500);cout<<"你的定价是:";long ding;cin>>ding;Sleep(500);if (ding>jinqian){cout<<"你没有这么多钱"<<endl;Sleep(500);cout<<"你的定价是:";long ding3;cin>>ding3;if (ding3<=jinqian){long long dd=wu*0.8;if (ding3>=dd){cout<<"卖家:嗯...我想我能接受"<<endl;jinqian-=ding3; Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding3<<endl;long long int mai,jg=ding3*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding3*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:不可能,我建议你不要少于"<<dd<<"¥"<<endl; Sleep(500);cout<<"卖家:你再看看"<<endl;long long ding2;cin>>ding2;if (ding2>jinqian){cout<<"你没有这么多钱"<<endl;Sleep(500);cout<<"卖家看你迟迟不说话,悄悄地走了"<<endl; shengwang-=1;defen+=10;}if (ding2<=jinqian){if (ding2>=dd){cout<<"卖家:嗯...我想我能接受"<<endl; jinqian-=ding2;Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding2<<endl;long long int mai,jg=ding2*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding2*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:我想我们没法谈生意了"<<endl;Sleep(500);cout<<"交易失败,你还有"<<jinqian<<"¥"<<endl; shengwang-=1;defen+=10;}}}}}if (ding<=jinqian){long long dd=wu*0.8;if (ding>=dd){cout<<"卖家:嗯...我想我能接受"<<endl; jinqian-=ding;Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding<<endl;long long int mai,jg=ding*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:不可能,我建议你不要少于"<<dd<<"¥"<<endl; Sleep(500);cout<<"卖家:你再看看"<<endl;long long ding2;cin>>ding2;if (ding2>jinqian){cout<<"你没有这么多钱"<<endl;}if (ding2<=jinqian){if (ding2>=dd){cout<<"卖家:嗯...我想我能接受"<<endl; jinqian-=ding2;Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding2<<endl;long long int mai,jg=ding2*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding2*1.4){Sleep(500); cout<<"买家:你太黑了,我不要了"<<endl;Sleep(500);cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:我想我们没法谈生意了"<<endl;Sleep(500);cout<<"交易失败,你还有"<<jinqian<<"¥"<<endl; shengwang-=1;defen+=10;}}}}}}}if (kai_zuhe[kai]==2){if (kai_zuhe[kai]==2){Sleep(500);cout<<"个人信息:"<<endl;cout<<"姓名"<<name<<endl;cout<<"金钱:"<<jinqian<<endl;cout<<"得分:"<<defen<<endl;cout<<"1.声望:"<<shengwang<<endl;cout<<"2.学识:"<<xueshi<<endl;if (defen>300){cout<<"3.工厂"<<endl; }cout<<"123.说明"<<endl; cout<<"你要升级的是:";int sj;cin>>sj;if (sj==1){Sleep(500);cout<<"你现在声望是:"<<shengwang<<endl;cout<<"每升1要100¥"<<endl;cout<<"你要升多少级:";long long int swsj;cin>>swsj;if (swsj*100>jinqian){Sleep(500);cout<<"你没这么多钱"<<endl; }else {jinqian-=swsj*100;shengwang+=swsj;Sleep(500);cout<<"升级成功,";cout<<"你现在的声望是:"<<shengwang<<endl; }}if (sj==2){Sleep(500);cout<<"你现在的学识是:"<<xueshi<<endl;cout<<"每升1要50¥"<<endl;cout<<"你要升:";long long int sxs;cin>>sxs;if (sxs*50>jinqian){Sleep(500);cout<<"你没这么多钱"<<endl; }else {jinqian-=sxs*50;xueshi+=sxs;Sleep(500);cout<<"升级成功,";cout<<"你现在的学识是:"<<xueshi<<endl; }}if (sj==123){Sleep(500);cout<<"金钱:用来升级,购买物品"<<endl;cout<<"声望:用来增加顾客"<<endl; cout<<"学识:用来辨别真假,获得金钱和声望"<<endl; cout<<"得分:用来解锁活动"<<endl; if (defen>300){cout<<"工厂:获得额外金钱"<<endl;}} } }if (kai_zuhe[kai]==3){Sleep(500); int dk1=0;int dk2=0;int dk3=0;int huodongjinru=0;if (defen>=500){dk1=1;}if (defen>=1000){dk2=1;}if (defen>=1000){dk3=1;}cout<<"你解锁的活动有:"<<endl;if (dk1==0){cout<<"你没有解锁任何活动"<<endl; huodongjinru=1;}if (dk1==1&&xq==5){cout<<"1.拍卖场"<<endl; }if (dk2==1){cout<<"2.工厂"<<endl; }if (dk3==1){cout<<"3.其他"<<endl; }if (huodongjinru==0){Sleep(500);cout<<"你要进行的活动是:";long xzhd;cin>>xzhd;if (xzhd==1&&xq==5){srand((int)time(0));Sleep(500); long wu[5],s;wu[0]=rand()%jinqian;wu[1]=rand()%jinqian;wu[2]=rand()%jinqian;wu[3]=rand()%jinqian;wu[4]=rand()%jinqian;//cout<<wu[0]<<endl;//cout<<wu[1]<<endl;//cout<<wu[2]<<endl;//cout<<wu[3]<<endl;//cout<<wu[4]<<endl;cout<<"1."<<wu[0]<<"¥"<<endl;cout<<"2."<<wu[1]<<"¥"<<endl;cout<<"3."<<wu[2]<<"¥"<<endl;cout<<"4."<<wu[3]<<"¥"<<endl;cout<<"5."<<wu[4]<<"¥"<<endl;cout<<"购买的物品价格越大,获利越大"<<endl; cout<<"你要购买一个物品:";long buywu;cin>>buywu;Sleep(500);cout<<"---------拍卖开始!!!-----------"<<endl;/*拍卖初始化*/ if (wu[buywu]<=500){for (int a=0;a<=100;a++){srand((int)time(0));s=rand()%3;if (s>=2){break;}}}if (wu[buywu]<=3000&&wu[buywu]>500){for (int a=0;a<=100;a++){srand((int)time(0));s=rand()%10;if (s>=6){break;}}}if (wu[buywu]<=10000&&wu[buywu]>3000){for (int a=0;a<=100;a++){srand((int)time(0));s=rand()%20;if (s>=10){break;}}}if (wu[buywu]>10000){for (int a=0;a<=100;a++){srand((int)time(0));s=rand()%40;if (s>=30){break;}}}long long int a2=wu[buywu-1],a4=0; /*真正开始*/ for (int a1=0;a1<=s;a1++){srand((int)time(0)); Sleep(750);cout<<"顾客:我出"<<a2<<"¥"<<endl;a4=a2;long long int a3=rand()%10000;a2+=a3;}jinqian+=a4;Sleep(1000);cout<<"-------拍卖报告---------"<<endl;cout<<"拍买获得:"<<a4-wu[buywu-1]<<"¥"<<endl; cout<<"现有金钱:"<<jinqian<<endl;} if (xzhd==2){Sleep(500);srand((int)time(0));long long int sccp1=rand()%1000;sccp+=sccp1; cout<<"工厂可以持续生产产品"<<endl; Sleep(500);cout<<"你一共有"<<sccp<<"个产品"<<endl;Sleep(500);cout<<"是否出售:1.出售 2.不出售"<<endl; int cs;cin>>cs;if (cs==1) {long long int sccp3=sccp*100;jinqian+=sccp3;Sleep(500);cout<<"你现在有:"<<jinqian<<"¥"<<endl; }}if (xzhd==3){Sleep(500);cout<<"1.剪子包袱锤"<<endl;Sleep(500);cout<<"2.比大小"<<endl;Sleep(500);cout<<"你的选择是:";long xzhd;cin>>xzhd;if (xzhd==1){Sleep(500);cout<<"1.剪子"<<endl;Sleep(500);cout<<"2.包袱"<<endl;Sleep(500);cout<<"3.锤"<<endl;cout<<"你要出:"; long long int zzbf;cin>>zzbf;srand((int)time(0));long long int zzbf1=rand()%2;if (zzbf1==0&&zzbf==1){Sleep(500);cout<<"对手:剪子"<<endl; Sleep(500);cout<<"平局"<<endl; Sleep(500);}if (zzbf1==0&&zzbf==2){Sleep(500);cout<<"对手:剪子"<<endl; Sleep(500);cout<<"赢了"<<endl;Sleep(500);}if (zzbf1==0&&zzbf==3){Sleep(500);cout<<"对手:剪子"<<endl; Sleep(500);cout<<"输了"<<endl;Sleep(500);}if (zzbf1==1&&zzbf==1){Sleep(500);cout<<"对手:包袱"<<endl; Sleep(500);cout<<"赢了"<<endl; Sleep(500);}if (zzbf1==1&&zzbf==2){Sleep(500);cout<<"对手:包袱"<<endl; Sleep(500);cout<<"平局"<<endl;Sleep(500);}if (zzbf1==1&&zzbf==3){Sleep(500);cout<<"对手:包袱"<<endl; Sleep(500);cout<<"输了"<<endl;Sleep(500);}if (zzbf1==2&&zzbf==1){Sleep(500);cout<<"对手:锤"<<endl; Sleep(500);cout<<"输了"<<endl; Sleep(500);}if (zzbf1==2&&zzbf==2){Sleep(500);cout<<"对手:锤"<<endl; Sleep(500);cout<<"赢了"<<endl;Sleep(500);}if (zzbf1==2&&zzbf==3){Sleep(500);cout<<"对手:锤"<<endl;Sleep(500); cout<<"平局"<<endl;Sleep(500); }} srand((int)time(0));long long int ccs=rand()%100;if (xzhd==2){for (int a=1;a>0;a++){Sleep(500);long long int cscs;cin>>cscs;if (cscs>ccs){Sleep(500);cout<<"大了"<<endl;}if (cscs<ccs){Sleep(500);cout<<"小了"<<endl;}if (cscs==ccs){Sleep(500);cout<<"你猜对了"<<endl;break; }}} }}}if (kai_zuhe[kai]==4){break2=90;break; }}if (break1==90){break;}}if (break2==90){for (int a=1;a>=0;a+=0){long long int hihi=rand()%10000;for (int a=1;a<=90;a+=1){srand((int)time(0));Sleep(50);cout<<"顾客:我出"<<hihi<<"¥"<<endl;long long int a3=rand()%10000;hihi+=a3;}jinqian+=hihi; Sleep(1500);cout<<"-------------------------"<<endl;cout<<"你有"<<jinqian<<"¥"<<endl;cout<<"-------------------------"<<endl;Sleep(2000);}} return 0;
}
中间剪子包袱锤故意的