版本比较
c++抽卡游戏v1.0
正文
增加 20 行删除 20 行
1,227 行未改动全部展开122812291230123112321233123212331234123512361237123812391240124112411242124312441245124612461247124812491248124912501251125212532 行未改动12561257125812591260126012611262126312641265126612651266126712681268126912701271127212731274127212731274127512761277127812791280128112811282128312841284128512861287128712881289129012916 行未改动129812991300130113021302130313041305130612 行未改动13191320132113221323132313241325132613272 行未改动13301331133213331334133413351336133713371338133913401341347 行未改动全部展开1,227 行未改动全部展开 hezi(); else break; }}void dz(){ system("cls"); //打字赚钱分页 void dz(){ system("cls"); //打字赚钱分页 cout<<"欢迎来到打字赚钱!给你一串英文字符,你应该打出一样的一串英文字符,每个字符2元,有一个字母错误则什么也无法获得!\n"; srand(time(0)); int x; cout<<"按1开始,其他键退出\n"; cin>>x; if (x!=1) return; string s,s2; int i,t; //x=字数 ,t随机 int i,t; //x=字数 ,t随机 cout<<"你要打几个字?最多100个"<<endl; cin>>x; if (x<1 || x>100){ cout<<"字数错误,请重新输入"<<endl; cout<<"按任意键继续"<<endl; cout<<"按任意键继续"<<endl; cin>>x; dz(); } dz(); } for (i=0;i<x;i++){ t=rand()%2; if (t==0){ t=rand()%26+'A';2 行未改动 if (t==1){ t=rand()%26+'a'; s+=char(t); } } } cout<<"请照打!"<<s; cin>>s2; if (s==s2){ cout<<"输对了,获得"<<x*2<<"元。"<<endl; n+=x*2; } n+=x*2; } else { cout<<"输错了,你什么也没有得到。"<<endl; cout<<"输错了,你什么也没有得到。"<<endl; } save(); pause();} void js(){ //计算赚钱 system("cls"); }void js(){ //计算赚钱 system("cls"); cout<<"欢迎来到计算赚钱!做出计算题的答案即可!一道题5元!\n"; int a,b,i,c,n,l,ans,q; cout<<"按1开始,其他键退出\n"; cin>>l; if (l!=1) return; cout<<"你要做几道计算题?最多100道"; cin>>n; cin>>n; if (n<1 || n>100){ cout<<"题目数错误,请重新输入"<<endl; cout<<"按任意键继续"<<endl; cout<<"按任意键继续"<<endl; cin>>l; js(); } } for (i=1;i<=n;i++){ c=rand()%3; if (c<2){ a=rand()%1000;6 行未改动 cout<<"正确!"<<endl; q++; } else cout<<"错误!"<<endl; } } else { if (ans==a-b) { cout<<"正确!"<<endl; q++;12 行未改动 cout<<"正确!"<<endl; q++; } else cout<<"错误!"<<endl; } } else { if (ans==b) { cout<<"正确!"<<endl; q++;2 行未改动 } } } cout<<"你做对了"<<q<<"道题,获得"<<q*10<<"元"<<endl; n+=q*5; n+=q*5; save(); pause();} }void get_money() { while (1) { save(); cls();347 行未改动全部展开