赚钱游戏 2.0.1 版 (资源免费)
没有c++编辑器的可以直接获取资源来玩
#include <iostream>
#include <string>
#include <windows.h>
#include <conio.h>
#include <fstream>
#include <ctime>
#include <time.h>
#include <stdio.h>
#include <cstring>
#include <conio.h>
#include <vector>
#include <windows.h>
using namespace std;
unsigned long long money=0,Speed=1,f=20,x=0,X=0,X_money=100,X_Speed=55;//money=钱,Speed=赚钱速度,f=升级钱数,x=名声 X=赚钱次数 X_money=升级经验钱数 X_Speed=加经验所需次数 string chsuju[37]={"菜鸟","初级富豪(一星)","初级富豪(二星)","初级富豪(三星)","初级富豪(四星)","初级富豪(五星)","中级富豪(一星)","中级富豪(二星)","中级富豪(三星)","中级富豪(四星)","中级富豪(五星)","中级富豪(六星)","高级富豪(一星)","高级富豪(二星)","高级富豪(三星)","高级富豪(四星)","高级富豪(五星)","高级富豪(六星)","高级富豪(七星)","超级富豪(一星)","超级富豪(二星)","超级富豪(三星)","超级富豪(四星)","超级富豪(五星)","超级富豪(六星)","超级富豪(七星)","超级富豪(八星)","终级富豪(一星)","终级富豪(二星)","终级富豪(三星)","终级富豪(四星)","终级富豪(五星)","????","??"};//称号数据 string checi[14]={"0","辆","辆","辆","辆","辆","辆","辆","辆","辆","辆","架","架","艘"};
int chemsheng[14]={-1,1,6,10,60,130,2630,3950,13160,65810,263270,1316350,6581700,30000000};
long long che_money[14]={-1,1000,5000,7000,10000,20000,100000,3000000,10000000,50000000,200000000,1000000000,5000000000,20000000000};
string cheming[14]={"0","自行车","小电驴","二手摩托车","小摩托车","电动摩托车","汽油摩托车","二手汽车","小汽车","新能源汽车","汽油汽车","私人飞机","大型私人飞机","火箭"};
int mc[31]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
//买车数据 string ccj_ming[11]={"0","好多自行车","小电驴大亨","谁没二手摩托车?","骑上我心爱的小摩托","坐上我心爱的小汽车","","","","",""};
int ccj_yao[11]={-1,10000,10000,10000,10000,10000};
string ccj[21]={"0","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得"};
string zxcj_ming[11]={"0","第一桶金","第二桶金","第三桶金","第四桶金","名声大大嘀","名声多多嘀","车太多了","经验小达人","经验达人","经验大达人"};
int zxcj_yao[11]={-1,250,520,54088,114514,99999,999999,99999999,50,250,520};
string zxcj[21]={"0","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得"};
//成就数据 string pifu[12]={"未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得"};
string pifu_color[15]={"白色","蓝色","绿色","红色","紫色","灰色","淡蓝色","淡绿色","淡红色","淡紫色","淡白色","淡黄色","黄色"};
int pifu_yao[12]={3,6,9,12,15,18,21,24,27,30,33,36};
//皮肤数据 int so=0;
int guaji=0;
int guaji_yao[2]={100000,10000000};
//挂机数据 int dj=1,g=0,g_dj=1;
//dj=等级,g=经验,g_dj=经验等级
void guaji_1(){X++; money=money+Speed;if(X%X_Speed==0&&X!=0){g=g+1;Speed+=Speed*0.05;}
}void guaji_2(){if(money>=f){dj=dj+1;Speed+=Speed*0.15;money=money-f;f+=f*0.45;//f+=f/100*65;f+=f*0.15;//f+=f/100*65;}
}void daoru(){cout<<"是否导入之前复制后的数据?(y/n)"<<endl;while(1){if (-32767 == GetAsyncKeyState('N')){return ;}if (-32767 == GetAsyncKeyState('Y')){system("cls"); cout<<"请把之前复制后的数据在复制回来(复制完后按Enter)"<<endl;cin>>money>>Speed>>f>>x>>X>>X_money>>X_Speed;for(int i=0;i<=30;i++){cin>>mc[i];}for(int i=0;i<=20;i++){cin>>ccj[i];} for(int i=0;i<=20;i++){cin>>zxcj[i];} for(int i=0;i<=11;i++){cin>>pifu[i];}cin>>dj>>g>>g_dj;system("cls");cout<<"正在加载数据中..."<<endl;Sleep(1000);return ;}}return ;
} //隐藏光标
void hide(){HANDLE h_GAME =GetStdHandle(STD_OUTPUT_HANDLE);CONSOLE_CURSOR_INFO cursor_info;GetConsoleCursorInfo(h_GAME,&cursor_info);cursor_info.bVisible=false;SetConsoleCursorInfo(h_GAME,&cursor_info);
}void paiming(){//称号规则输出 to: ;system("cls");cout<<" 初级富豪(一星): 10级"<<endl;cout<<" 初级富豪(二星): 11级"<<endl;cout<<" 初级富豪(三星): 12级"<<endl;cout<<" 初级富豪(四星): 13级"<<endl;cout<<" 初级富豪(五星): 14级"<<endl;cout<<"***********************"<<endl;cout<<" 中级富豪(一星): 15级"<<endl;cout<<" 中级富豪(二星): 16级"<<endl;cout<<" 中级富豪(三星): 17级"<<endl;cout<<" 中级富豪(四星): 18级"<<endl;cout<<" 中级富豪(五星): 19级"<<endl;cout<<" 中级富豪(六星): 20级"<<endl;cout<<"&&&&&&&&&&&&&&&&&&&&&&&"<<endl; cout<<" 高级富豪(一星): 21级"<<endl;cout<<" 高级富豪(二星): 22级"<<endl;cout<<" 高级富豪(三星): 23级"<<endl;cout<<" 高级富豪(四星): 24级"<<endl;cout<<" 高级富豪(五星): 25级"<<endl;cout<<" 高级富豪(六星): 26级"<<endl;cout<<" 高级富豪(七星): 27级"<<endl;cout<<"+++++++++++++++++++++++"<<endl; cout<<" 超级富豪(一星): 28级"<<endl;cout<<" 超级富豪(二星): 29级"<<endl;cout<<" 超级富豪(三星): 30级"<<endl;cout<<" 超级富豪(四星): 31级"<<endl;cout<<" 超级富豪(五星): 32级"<<endl;cout<<" 超级富豪(六星): 33级"<<endl;cout<<" 超级富豪(七星): 34级"<<endl;cout<<" 超级富豪(八星): 35级"<<endl;cout<<"======================="<<endl;cout<<" 终级富豪(一星): 36级"<<endl;cout<<" 终级富豪(二星): 37级"<<endl;cout<<" 终级富豪(三星): 38级"<<endl;cout<<" 终级富豪(四星): 39级"<<endl;cout<<" 终级富豪(五星): 40级"<<endl;cout<<"$$$$$$$$$$$$$$$$$$$$$$$"<<endl;cout<<" "<<chsuju[31]<<" 45级"<<endl;cout<<" "<<chsuju[32]<<" 50级"<<endl; cout<<endl<<endl; //判断称号 if(dj<10){cout<<" ======"<<endl;cout<<"您现在是: ="<<chsuju[0]<<"="<<endl;cout<<" ======"<<endl;}else if(dj<=40){cout<<" ================"<<endl;cout<<"您现在是: ="<<chsuju[dj-9]<<"="<<endl;cout<<" ================"<<endl;}else if(dj>=45&&dj<=50){cout<<" ============"<<endl;cout<<"您现在是: ="<<chsuju[32]<<"="<<endl;cout<<" ============"<<endl;}else if(dj>=50){cout<<" ======"<<endl;cout<<"您现在是: ="<<chsuju[33]<<"="<<endl;cout<<" ======"<<endl;}if(dj==37){Sleep(500); cout<<"下一级有彩蛋!!!"<<endl;}if(dj==38){Sleep(500);cout<<"彩蛋马上开始!!!" <<endl;Sleep(1000); system("start https://www.bilibili.com/video/BV1gc411W7ei/?spm_id_from=trigger_reload&vd_source=22158b889b5360491372ab2771a35e80");Sleep(10000);cout<<"下一级还有彩蛋哦!!!"<<endl; }if(dj==39){Sleep(500);cout<<"彩蛋马上开始!!!" <<endl;Sleep(1000);system("start https://www.bilibili.com/video/BV1Kv4y1p7n3/?spm_id_from=333.788.recommend_more_video.2&vd_source=22158b889b5360491372ab2771a35e80");}if(dj==40){cout<<"您富可敌国!!!"<<endl;cout<<"祝贺你"<<endl;cout<<" *** ***"<<endl;cout<<" ***** *****"<<endl;cout<<" ******* *******"<<endl;cout<<" *****************"<<endl;cout<<" *****************"<<endl;cout<<" ***************"<<endl;cout<<" *************"<<endl;cout<<" ***********"<<endl;cout<<" *********"<<endl;cout<<" *******"<<endl;cout<<" *****"<<endl;cout<<" ***"<<endl;system("start https://www.bilibili.com/video/BV1hs4y197wU/?spm_id_from=autoNext&vd_source=22158b889b5360491372ab2771a35e80");cout<<"小提示:"<<endl;cout<<"40级以上时打开排行榜"<<endl;cout<<"又可触发彩蛋!!!"<<endl;cout<<"快去试试吧!" <<endl;}if(dj>=45){if(chsuju[31]=="????"){system("cls");chsuju[31]="究级富豪";string abc[6]={"","????","究???","究级??","究级富?","究级富豪"}; cout<<"????";Sleep(800);cout<<"-";Sleep(1000);cout<<">";Sleep(1200);system("cls"); for(int i=1;i<=5;i++){cout<<"????";cout<<"-";cout<<">";cout<<abc[i];Sleep(800);system("cls");}Sleep(500);cout<<"你已触发彩蛋"<<endl;Sleep(500);cout<<"观看视频"<<endl; Sleep(1000);system("start https://www.bilibili.com/video/BV1ST411h73B/?spm_id_from=333.337.search-card.all.click");goto to;}if(chsuju[32]=="??"){system("cls");chsuju[32]="神豪"; string abc[4]={"","??","神?","神豪"}; cout<<"??";Sleep(800);cout<<"-";Sleep(1000);cout<<">";Sleep(1200);system("cls"); for(int i=1;i<=3;i++){cout<<"??";cout<<"-";cout<<">";cout<<abc[i];Sleep(800);system("cls");}Sleep(500);cout<<"恭喜你!获得最强称号!点个关注吧!作者:爱学c++"<<endl;system("start https://blog.csdn.net/C5408C?type=blog");goto to;} }cout<<"按n退出:";while(1){if (-32767 == GetAsyncKeyState('N')){return ;}}
}void maiche(int k){int shuliang;if(che_money[k]>money){cout<<"钱不够,还差"<<che_money[k]-money<<"元"<<endl;Sleep(800);return ;} cout<<"要1辆按1 要10辆按2 要100辆按3 要1000辆按4 要一万辆按5 要十万辆按6 要一百万辆按7"<<endl;while(1){if (-32767 == GetAsyncKeyState('1')){shuliang=1;break;}if (-32767 == GetAsyncKeyState('2')){shuliang=10;break;}if (-32767 == GetAsyncKeyState('3')){shuliang=100;break;}if (-32767 == GetAsyncKeyState('4')){shuliang=1000;break;}if (-32767 == GetAsyncKeyState('5')){shuliang=10000;break;}if (-32767 == GetAsyncKeyState('6')){shuliang=100000;break;}if (-32767 == GetAsyncKeyState('7')){shuliang=1000000;break;}}if(((unsigned long long)shuliang*(unsigned long long)che_money)>money){cout<<"钱不够,还差"<< (unsigned long long)shuliang*(unsigned long long)che_money-money<<"元"<<endl;Sleep(800);return ; }system("cls");money=money-che_money[k]*shuliang;x=x+chemsheng[k]*shuliang;mc[k]+=shuliang;cout<<"恭喜获得"<<shuliang<<checi[k]<<cheming[k]<<"!!!"<<endl; cout<<"按n退出 按m继续买";while(1){if (-32767 == GetAsyncKeyState('N')){return ;}if (-32767 == GetAsyncKeyState('M')){maiche(k); return ; }}
}//标题输出
void biaoti(){for(int i=1;i<=21;i++){cout<<"=";Sleep(100);}cout<<endl;cout<<"=";Sleep(100);cout<<" 一千万亿很简单 ";Sleep(100);cout<<"="; cout<<endl<<"=";for(int i=1;i<=6;i++){cout<<" ";}cout<<"(2.0.1)"; cout<<" =";cout<<endl;Sleep(100);for(int i=1;i<=21;i++){cout<<"=";Sleep(100);}cout<<endl;Sleep(100);cout<<"=";Sleep(200);cout<<"备";Sleep(200);cout<<"注";Sleep(200);cout<<":";Sleep(400);cout<<"(";Sleep(200);cout<<"可";Sleep(200);cout<<"能";Sleep(200);cout<<"吧";Sleep(200);cout<<"~";Sleep(200);cout<<"~";Sleep(200);cout<<"~";Sleep(200);cout<<")";Sleep(200);cout<<"="<<endl;Sleep(600);cout<<"=";Sleep(200);cout<<" (";Sleep(200);cout<<"-";Sleep(200);cout<<"_";Sleep(200);cout<<"-";Sleep(200);cout<<"'";Sleep(200);cout<<")";Sleep(200);cout<<" ="<<endl;Sleep(250);for(int i=1;i<=21;i++){cout<<"=";Sleep(100);}cout<<endl; Sleep(800);cout<<"按n开始游戏"<<endl; while(1){if (-32767 == GetAsyncKeyState('N')){break;}}
}int main(){hide();/*MessageBox(0, TEXT("如果你是刚玩这个游戏,请新建一个名为 data2 的文本文档"), TEXT("注意"), MB_OK);if (MessageBox(0, TEXT("为了游戏的体验感优良,请不要更改data2文本文档"), TEXT("特别重要提示"), MB_OKCANCEL | MB_ICONINFORMATION) != IDOK){MessageBox(0, TEXT("既然你不同意,那就别玩了"), TEXT("你个**"), MB_OK);SetFileAttributes("data2.txt",FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN); return 0;}*/hide();biaoti();hide();//登录或创建账号 //key_3();hide();system("cls");//daoru();//Sleep(1000);//主代码while(1){hide();system("cls");cout<<"赚钱 按1(赚钱速度为"<<Speed<<")"<<endl;cout<<"$:"<<money<<" 级别:"<<dj<<" 经验:"<<g<<endl;cout<<"================="<<endl;cout<<"=升级--------按2="<<endl;cout<<"=称号--------按3="<<endl;cout<<"=买车,买房---按4="<<endl;cout<<"=挂机--------按5="<<endl;cout<<"=攻略--------按6="<<endl;cout<<"=成就--------按7="<<endl;cout<<"=皮肤--------按8="<<endl; cout<<"=保存--------按9="<<endl; cout<<"================="<<endl;if(guaji>0){guaji_1();if(guaji==2&&so==5000) guaji_2();}for(unsigned long long i=1;i!=so;i++){if (-32767 == GetAsyncKeyState('1')){X++; money=money+Speed;if(X%X_Speed==0&&X!=0){g=g+1;Speed+=Speed*0.05;}break;}if (-32767 == GetAsyncKeyState('2')){unsigned long long Speed1=0;while(1){system("cls");cout<<"=========升级========="<<endl;cout<<"=退出 按1="<<endl; cout<<"=升级赚钱速度 按2="<<endl;cout<<"=升级加经验速度 按3="<<endl;cout<<"=升级挂机 按4="<<endl; cout<<"======================"<<endl; while(1){if (-32767 == GetAsyncKeyState('2')){if(Speed<8) Speed1=Speed+2;else{Speed1=Speed+Speed*0.15;} cout<<"赚钱速度:"<<Speed<<"->"<<Speed1<<endl;cout<<"等级:"<<dj<<"->"<<dj+1<<endl;cout<<"要"<<f<<"元"<<endl;cout<<"确定升级吗?(y/n)"<<endl; while(1){if (-32767 == GetAsyncKeyState('Y')){if(money<f){system("cls");cout<<"钱不够,还差"<<f-money<<"元"<<endl;Sleep(800);break;}else{dj=dj+1;if(Speed<8) Speed=Speed+2;else{Speed+=Speed*0.15;} money=money-f;f+=f*0.45;//f+=f/100*65;f+=f*0.15;//f+=f/100*65;cout<<"已升级"<<endl;Sleep(500);break;}} if (-32767 == GetAsyncKeyState('N')){break;}}break;}if (-32767 == GetAsyncKeyState('3')){if(g_dj==6){cout<<"加经验所需的赚钱次数:"<<X_Speed<<endl;cout<<"经验等级:"<<g_dj<<endl;cout<<"已满级"<<endl;Sleep(1000);break;} cout<<"加经验所需的赚钱次数:"<<X_Speed<<"->"<<X_Speed-5<<endl;cout<<"经验等级:"<<g_dj<<"->"<<g_dj+1<<endl;cout<<"要"<<X_money<<"元"<<endl;cout<<"确定升级吗?(y/n)"<<endl; while(1){if (-32767 == GetAsyncKeyState('Y')){if(money<X_money){system("cls");cout<<"钱不够,还差"<<X_money-money<<"元"<<endl;Sleep(800);break;}else{g_dj=g_dj+1;money=money-X_money;X_Speed=X_Speed-5;X_money*=3;cout<<"已升级"<<endl;Sleep(500); break;}} if (-32767 == GetAsyncKeyState('N')){break;}}break;}if (-32767 == GetAsyncKeyState('4')){if(guaji==2){cout<<"已满级"<<endl;Sleep(800);break;}if(dj<15){cout<<"等级不够,还差"<<15-dj<<"级"<<endl;Sleep(800);break;}else if(dj>=15&&dj<25&&guaji==1){cout<<"等级不够,还差"<<25-dj<<"级"<<endl;Sleep(800);break;}if(guaji==0){cout<<"可升级为自动赚钱"<<endl; cout<<"要1000000元"<<endl;cout<<"确定升级吗?(y/n)"<<endl; }if(guaji==1){cout<<"可升级为自动赚钱加自动升级"<<endl; cout<<"要100000000元"<<endl;cout<<"确定升级吗?(y/n)"<<endl;}while(1){if (-32767 == GetAsyncKeyState('Y')){if(money<guaji_yao[guaji]){system("cls");cout<<"钱不够,还差"<<guaji_yao[guaji]-money<<"元"<<endl;Sleep(800);break;}else{so=5000;guaji++;money=money-guaji_yao[guaji];cout<<"已升级"<<endl;Sleep(500);break;}if(guaji==2)MessageBox(0, TEXT("按c可存钱,再按c可继续自动升级"), TEXT("注意"), MB_OK);} if (-32767 == GetAsyncKeyState('N')){break;}}break;}if (-32767 == GetAsyncKeyState('1')){goto go;}}}go: break;}if (-32767 == GetAsyncKeyState('3')){paiming();system("cls");break;}if (-32767 == GetAsyncKeyState('4')){while(1){int c=0,k=0;system("cls");cout<<"买车:1 买房(未完成):2 退出:3 $:"<<money<<" 名声:"<<x<<" 仓库:4"<<endl;while(1){if (-32767 == GetAsyncKeyState('1')){while(1){system("cls");cout<<"=========================买车========================"<<endl;cout<<"==1000$ 自行车 (名声+1) 按1 =="<<endl;cout<<"==5000$ 小电驴 (名声+6) 按2 =="<<endl;cout<<"==7000$ 二手摩托车 (名声+10) 按3 =="<<endl;cout<<"==10000$ 小摩托车 (名声+60) 按4 =="<<endl;cout<<"==20000$ 电动摩托车 (名声+130) 按5 =="<<endl;cout<<"==100000$ 汽油摩托车 (名声+2630) 按6 =="<<endl;cout<<"==3000000$ 二手汽车 (名声+3950) 按7 =="<<endl;cout<<"==10000000$ 小汽车 (名声+13160) 按8 =="<<endl;cout<<"==50000000$ 新能源汽车 (名声+65810) 按9 =="<<endl;cout<<"==200000000$ 汽油汽车 (名声+263270) 按a =="<<endl;cout<<"==1000000000$ 私人飞机 (名声+1316350) 按b =="<<endl;cout<<"==5000000000$ 大型私人飞机 (名声+6581700) 按c =="<<endl;cout<<"==20000000000$ 火箭 (名声+30000000) 按d =="<<endl; cout<<"==退出 按e =="<<endl;cout<<"===================================================="<<endl;cout<<"名声:"<<x<<endl;cout<<"$:"<<money<<endl;while(1){if (-32767 == GetAsyncKeyState('1')){maiche(1);break;}if (-32767 == GetAsyncKeyState('2')){maiche(2);break;}if (-32767 == GetAsyncKeyState('3')){maiche(3);break;}if (-32767 == GetAsyncKeyState('4')){maiche(4);break;}if (-32767 == GetAsyncKeyState('5')){maiche(5);break;}if (-32767 == GetAsyncKeyState('6')){maiche(6);break;}if (-32767 == GetAsyncKeyState('7')){maiche(7);break;}if (-32767 == GetAsyncKeyState('8')){maiche(8);break;}if (-32767 == GetAsyncKeyState('9')){maiche(9);break;}if (-32767 == GetAsyncKeyState('A')){maiche(10);break;}if (-32767 == GetAsyncKeyState('B')){maiche(11);break;}if (-32767 == GetAsyncKeyState('C')){maiche(12);break;}if (-32767 == GetAsyncKeyState('D')){maiche(13);break;}if (-32767 == GetAsyncKeyState('E')){goto go1;}}system("cls");}}if (-32767 == GetAsyncKeyState('2')){system("cls");cout<<"========================================="<<endl;cout<<"==5000$ 合租小房子 (名声+2) 按1=="<<endl;cout<<"==36000$ 合租大房子 (名声+6) 按2=="<<endl;cout<<"==100000$ (名声+2) 按3=="<<endl;cout<<"========================================="<<endl;break;}if (-32767 == GetAsyncKeyState('3')){goto go1;}if (-32767 == GetAsyncKeyState('4')){system("cls");for(int i=1;i<=13;i++){cout<<"您的"<<cheming[i]<<"有"<<mc[i]<<checi[i]<<endl; }Sleep(500);cout<<"按n退出"<<endl; while(1){if (-32767 == GetAsyncKeyState('N')){break;}}break;}}}go1: ;system("cls");break;}if (-32767 == GetAsyncKeyState('5')){if(guaji>0){cout<<"无效操作"<<endl;Sleep(800);break; }long long guaji=0;//金钱 int gjsj=0;//时间 int as=-1;Sleep(200);MessageBox(NULL, "挂机中按n退出", "注意", MB_OK);MessageBox(NULL, "最多挂机100分钟,每秒获得一次金钱。", "注意", MB_OK);while(1){system("cls");cout<<"退出按1,挂机按2"<<endl;while(1){if (-32767 == GetAsyncKeyState('1')){break;}if (-32767 == GetAsyncKeyState('2')){system("cls");cout<<"开始挂机"<<endl;Sleep(500);system("cls");for(int i=0;i<=6000;i++){cout<<"已挂机"<<i<<"秒"<<endl;for(int j=1;j<=90;j++){if (-32767 == GetAsyncKeyState('N')){as=0;break;}Sleep(1);}gjsj++;if(as==0) break;X++;if(X%50==0){g=g+1;Speed+=Speed/8;}system("cls");}money+=(Speed*gjsj);cout<<"已挂机完毕,您获得了"<<Speed*gjsj<<"元"<<endl;MessageBox(NULL, "已挂机完毕", "提示", MB_OK);break;}}break;}break;}if (-32767 == GetAsyncKeyState('6')){system("cls");MessageBox(NULL, "想快点赚钱就快点升级(手动赚钱最快哦!!!)", "攻略", MB_OK);MessageBox(NULL, "经验也可以增加赚钱速度!", "攻略", MB_OK);MessageBox(NULL, "记得看称号(到了终级富豪以上有惊喜!!!)", "攻略", MB_OK);MessageBox(NULL, "没时间玩的话试试挂机,但最多挂机100分钟,挂机也可以加经验哟!", "攻略", MB_OK);MessageBox(NULL, "买车买房中可以获得成就哦!", "攻略", MB_OK);MessageBox(NULL, "完成任务可以获得成就哦!", "攻略", MB_OK);MessageBox(NULL, "好吧,就这样吧,攻略结束^_^", "攻略", MB_OK);break;}if(-32767 == GetAsyncKeyState('7')){system("cls");for(int i=1;i<=5;i++){if(mc[i]>=ccj_yao[i]&&ccj[i]=="未获得"){cout<<"恭喜获得成就:"<<ccj_ming[i]<<"!!!(买车成就)"<<endl;ccj[i]="已获得";Sleep(500); } }for(int i=1;i<=4;i++){if(zxcj[i]=="未获得"&&money>=zxcj_yao[i]){cout<<"恭喜获得成就:"<<zxcj_ming[i]<<"!!!(主线成就)"<<endl;zxcj[i]="已获得";Sleep(500); }}for(int i=5;i<=7;i++){if(zxcj[i]=="未获得"&&x>=zxcj_yao[i]){cout<<"恭喜获得成就:"<<zxcj_ming[i]<<"!!!(主线成就)"<<endl; zxcj[i]="已获得";Sleep(500); }}for(int i=8;i<=10;i++){if(zxcj[i]=="未获得"&&g>=zxcj_yao[i]){cout<<"恭喜获得成就:"<<zxcj_ming[i]<<"!!!(主线成就)"<<endl;zxcj[i]="已获得";Sleep(500); }}cout<<"=======================买车成就======================="<<endl;cout<<"=1.好多自行车 (拥有自行车10000辆) "<<ccj[1]<<"="<<endl;cout<<"=2.小电驴大亨 (拥有小电驴10000辆) "<<ccj[2]<<"="<<endl;cout<<"=3.谁没二手摩托车? (拥有二手摩托车10000辆) "<<ccj[3]<<"="<<endl;cout<<"=4.骑上我心爱的小摩托 (拥有小摩托车10000辆) "<<ccj[4]<<"="<<endl;cout<<"=5.坐上我心爱的小汽车 (拥有小汽车10000辆) "<<ccj[5]<<"="<<endl;cout<<"=======================主线成就======================="<<endl;cout<<"=1. 第一桶金 (赚钱速度>=50元) "<<zxcj[1]<<"="<<endl;cout<<"=2. 第二桶金 (赚钱速度>=520元) "<<zxcj[2]<<"="<<endl;cout<<"=3. 第三桶金 (赚钱速度>=54088元) "<<zxcj[3]<<"="<<endl;cout<<"=4. 第四桶金 (赚钱速度>=114514元) "<<zxcj[4]<<"="<<endl; cout<<"=5. 名声大大嘀 (获得99999名声) "<<zxcj[5]<<"="<<endl;cout<<"=6. 名声多多嘀 (获得999999名声) "<<zxcj[6]<<"="<<endl;cout<<"=7. 车太多了 (获得99999999名声) "<<zxcj[7]<<"="<<endl;cout<<"=8. 经验小达人 (获得50经验) "<<zxcj[8]<<"="<<endl;cout<<"=9. 经验达人 (获得250经验) "<<zxcj[9]<<"="<<endl;cout<<"=10.经验大达人 (获得520经验) "<<zxcj[10]<<"="<<endl;cout<<"======================================================"<<endl; Sleep(500);cout<<"按n退出"<<endl; while(1){if (-32767 == GetAsyncKeyState('N')){break;}}break;}if (-32767 == GetAsyncKeyState('8')){for(int i=0;i<=11;i++){if(pifu_yao[i]<=dj) pifu[i]="已获得";}while(1){system("cls");cout<<"================皮肤==============="<<endl;cout<<"=白色 (免费) 按1 ="<<endl;cout<<"=蓝色 (等级要为3) 按2 ("<<pifu[0]<<")="<<endl;cout<<"=绿色 (等级要为6) 按3 ("<<pifu[1]<<")="<<endl;cout<<"=红色 (等级要为9) 按4 ("<<pifu[2]<<")="<<endl;cout<<"=紫色 (等级要为12) 按5 ("<<pifu[3]<<")="<<endl;cout<<"=灰色 (等级要为15) 按6 ("<<pifu[4]<<")="<<endl;cout<<"=淡蓝色 (等级要为18) 按7 ("<<pifu[5]<<")="<<endl;cout<<"=淡绿色 (等级要为21) 按8 ("<<pifu[6]<<")="<<endl;cout<<"=淡红色 (等级要为24) 按9 ("<<pifu[7]<<")="<<endl;cout<<"=淡紫色 (等级要为27) 按a ("<<pifu[8]<<")="<<endl;cout<<"=淡白色 (等级要为30) 按b ("<<pifu[9]<<")="<<endl;cout<<"=淡黄色 (等级要为33) 按c ("<<pifu[10]<<")="<<endl;cout<<"=黄色 (等级要为36) 按d ("<<pifu[11]<<")="<<endl;cout<<"=退出 按e ="<<endl;cout<<"==================================="<<endl;while(1){if (-32767 == GetAsyncKeyState('1')){system("color 7");cout<<"已设置为 白色"<<endl;Sleep(800);break;}if (-32767 == GetAsyncKeyState('2')){if(dj>=3){system("color 1");cout<<"已设置为 蓝色"<<endl;}else{system("cls"); cout<<"需再升"<<3-dj<<"级才可获得"<<endl;} Sleep(800);break;}if (-32767 == GetAsyncKeyState('3')){if(dj>=6){system("color 2");cout<<"已设置为 绿色"<<endl;}else{system("cls"); cout<<"需再升"<<6-dj<<"级才可获得"<<endl;} Sleep(800);break;}if (-32767 == GetAsyncKeyState('4')){if(dj>=9){system("color 4");cout<<"已设置为 红色"<<endl;}else{system("cls"); cout<<"需再升"<<9-dj<<"级才可获得"<<endl;} Sleep(800);break;}if (-32767 == GetAsyncKeyState('5')){if(dj>=12){system("color 5");cout<<"已设置为 紫色"<<endl;}else{system("cls"); cout<<"需再升"<<12-dj<<"级才可获得"<<endl;} Sleep(800);break;}if (-32767 == GetAsyncKeyState('6')){if(dj>=15){system("color 8");cout<<"已设置为 灰色"<<endl;}else{system("cls"); cout<<"需再升"<<15-dj<<"级才可获得"<<endl;} Sleep(800);break;}if (-32767 == GetAsyncKeyState('7')){if(dj>=18){system("color 9");cout<<"已设置为 淡蓝色"<<endl;}else{system("cls"); cout<<"需再升"<<18-dj<<"级才可获得"<<endl;} Sleep(800);break;}if (-32767 == GetAsyncKeyState('8')){if(dj>=21){system("color 3");cout<<"已设置为 浅绿色"<<endl;}else{system("cls"); cout<<"需再升"<<21-dj<<"级才可获得"<<endl;} Sleep(800);break;}if (-32767 == GetAsyncKeyState('9')){if(dj>=24){system("color C");cout<<"已设置为 淡红色"<<endl;}else{system("cls"); cout<<"需再升"<<24-dj<<"级才可获得"<<endl;} Sleep(800);break;}if (-32767 == GetAsyncKeyState('A')){if(dj>=27){system("color D");cout<<"已设置为 淡紫色"<<endl;}else{system("cls"); cout<<"需再升"<<27-dj<<"级才可获得"<<endl;} Sleep(800);break;}if (-32767 == GetAsyncKeyState('B')){if(dj>=30){system("color F");cout<<"已设置为 淡白色"<<endl;}else{system("cls"); cout<<"需再升"<<30-dj<<"级才可获得"<<endl;} Sleep(800);break;}if (-32767 == GetAsyncKeyState('C')){if(dj>=33){system("color E");cout<<"已设置为 淡黄色"<<endl;}else{system("cls"); cout<<"需再升"<<33-dj<<"级才可获得"<<endl;} Sleep(800);break;}if (-32767 == GetAsyncKeyState('D')){if(dj>=36){system("color 6");cout<<"已设置为 黄色"<<endl;}else{system("cls"); cout<<"需再升"<<36-dj<<"级才可获得"<<endl;} Sleep(800);break;}if (-32767 == GetAsyncKeyState('E')){goto t;}}}t: break;}if (-32767 == GetAsyncKeyState('9')){system("cls");cout<<"请复制以下数据到一个文本文档:"<<endl;printf("%llu %llu %llu %llu %llu %llu %llu\n",money,Speed,f,x,X,X_money,X_Speed);//cout<<money<<" "<<Speed<<" "<<f<<" "<<x<<" "<<X<<" "<<X_money<<" "<<X_Speed<<endl;for(int i=0;i<=30;i++){printf("%d ",mc[i]);//cout<<mc[i]<<" ";}cout<<endl;for(int i=0;i<=21;i++){//printf("%s ",ccj[i]);cout<<ccj[i]<<" ";if(i==10) cout<<endl;}cout<<endl;for(int i=0;i<=21;i++){//printf("%s ",zxcj[i]);cout<<zxcj[i]<<" ";if(i==10) cout<<endl;}cout<<endl;for(int i=0;i<=11;i++){//printf("%s ",pifu[i]);cout<<pifu[i]<<" ";}printf("%d %d %d\n",dj,g,g_dj);//cout<<endl<<dj<<" "<<g<<" "<<g_dj<<endl;cout<<"按n退出:";while(1){if (-32767 == GetAsyncKeyState('N')){break;}}break; }if (-32767 == GetAsyncKeyState('C')){if(so==5000) so=4999;if(so==4999) so=5000;}}system("cls");}return 0;
}
#include <iostream>
#include <string>
#include <windows.h>
#include <conio.h>
#include <fstream>
#include <ctime>
#include <time.h>
#include <stdio.h>
#include <cstring>
#include <conio.h>
#include <vector>
#include <windows.h>
using namespace std;
unsigned long long money=0,Speed=1,f=20,x=0,X=0,X_money=100,X_Speed=55;
//money=钱,Speed=赚钱速度,f=升级钱数,x=名声 X=赚钱次数 X_money=升级经验钱数 X_Speed=加经验所需次数
string chsuju[37]={"菜鸟","初级富豪(一星)","初级富豪(二星)","初级富豪(三星)","初级富豪(四星)","初级富豪(五星)","中级富豪(一星)","中级富豪(二星)","中级富豪(三星)","中级富豪(四星)","中级富豪(五星)","中级富豪(六星)","高级富豪(一星)","高级富豪(二星)","高级富豪(三星)","高级富豪(四星)","高级富豪(五星)","高级富豪(六星)","高级富豪(七星)","超级富豪(一星)","超级富豪(二星)","超级富豪(三星)","超级富豪(四星)","超级富豪(五星)","超级富豪(六星)","超级富豪(七星)","超级富豪(八星)","终级富豪(一星)","终级富豪(二星)","终级富豪(三星)","终级富豪(四星)","终级富豪(五星)","????","??"};
//称号数据
string checi[14]={"0","辆","辆","辆","辆","辆","辆","辆","辆","辆","辆","架","架","艘"};
int chemsheng[14]={-1,1,6,10,60,130,2630,3950,13160,65810,263270,1316350,6581700,30000000};
long long che_money[14]={-1,1000,5000,7000,10000,20000,100000,3000000,10000000,50000000,200000000,1000000000,5000000000,20000000000};
string cheming[14]={"0","自行车","小电驴","二手摩托车","小摩托车","电动摩托车","汽油摩托车","二手汽车","小汽车","新能源汽车","汽油汽车","私人飞机","大型私人飞机","火箭"};
int mc[31]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
//买车数据
string ccj_ming[11]={"0","好多自行车","小电驴大亨","谁没二手摩托车?","骑上我心爱的小摩托","坐上我心爱的小汽车","","","","",""};
int ccj_yao[11]={-1,10000,10000,10000,10000,10000};
string ccj[21]={"0","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得"};
string zxcj_ming[11]={"0","第一桶金","第二桶金","第三桶金","第四桶金","名声大大嘀","名声多多嘀","车太多了","经验小达人","经验达人","经验大达人"};
int zxcj_yao[11]={-1,250,520,54088,114514,99999,999999,99999999,50,250,520};
string zxcj[21]={"0","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得"};
//成就数据
string pifu[12]={"未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得"};
string pifu_color[15]={"白色","蓝色","绿色","红色","紫色","灰色","淡蓝色","淡绿色","淡红色","淡紫色","淡白色","淡黄色","黄色"};
int pifu_yao[12]={3,6,9,12,15,18,21,24,27,30,33,36};
//皮肤数据
int so=0;
int guaji=0;
int guaji_yao[2]={100000,10000000};
//挂机数据
int dj=1,g=0,g_dj=1;
//dj=等级,g=经验,g_dj=经验等级
void guaji_1(){
X++;
money=money+Speed;
if(X%X_Speed==0&&X!=0){
g=g+1;
Speed+=Speed*0.05;
}
}
void guaji_2(){
if(money>=f){
dj=dj+1;
Speed+=Speed*0.15;
money=money-f;
f+=f*0.45;//f+=f/100*65;
f+=f*0.15;//f+=f/100*65;
}
}
void daoru(){
cout<<"是否导入之前复制后的数据?(y/n)"<<endl;
while(1){
if (-32767 == GetAsyncKeyState('N')){
return ;
}
if (-32767 == GetAsyncKeyState('Y')){
system("cls");
cout<<"请把之前复制后的数据在复制回来(复制完后按Enter)"<<endl;
cin>>money>>Speed>>f>>x>>X>>X_money>>X_Speed;
for(int i=0;i<=30;i++){
cin>>mc[i];
}
for(int i=0;i<=20;i++){
cin>>ccj[i];
}
for(int i=0;i<=20;i++){
cin>>zxcj[i];
}
for(int i=0;i<=11;i++){
cin>>pifu[i];
}
cin>>dj>>g>>g_dj;
system("cls");
cout<<"正在加载数据中..."<<endl;
Sleep(1000);
return ;
}
}
return ;
}
//隐藏光标
void hide(){
HANDLE h_GAME =GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_CURSOR_INFO cursor_info;
GetConsoleCursorInfo(h_GAME,&cursor_info);
cursor_info.bVisible=false;
SetConsoleCursorInfo(h_GAME,&cursor_info);
}
void paiming(){//称号规则输出
to: ;
system("cls");
cout<<" 初级富豪(一星): 10级"<<endl;
cout<<" 初级富豪(二星): 11级"<<endl;
cout<<" 初级富豪(三星): 12级"<<endl;
cout<<" 初级富豪(四星): 13级"<<endl;
cout<<" 初级富豪(五星): 14级"<<endl;
cout<<"***********************"<<endl;
cout<<" 中级富豪(一星): 15级"<<endl;
cout<<" 中级富豪(二星): 16级"<<endl;
cout<<" 中级富豪(三星): 17级"<<endl;
cout<<" 中级富豪(四星): 18级"<<endl;
cout<<" 中级富豪(五星): 19级"<<endl;
cout<<" 中级富豪(六星): 20级"<<endl;
cout<<"&&&&&&&&&&&&&&&&&&&&&&&"<<endl;
cout<<" 高级富豪(一星): 21级"<<endl;
cout<<" 高级富豪(二星): 22级"<<endl;
cout<<" 高级富豪(三星): 23级"<<endl;
cout<<" 高级富豪(四星): 24级"<<endl;
cout<<" 高级富豪(五星): 25级"<<endl;
cout<<" 高级富豪(六星): 26级"<<endl;
cout<<" 高级富豪(七星): 27级"<<endl;
cout<<"+++++++++++++++++++++++"<<endl;
cout<<" 超级富豪(一星): 28级"<<endl;
cout<<" 超级富豪(二星): 29级"<<endl;
cout<<" 超级富豪(三星): 30级"<<endl;
cout<<" 超级富豪(四星): 31级"<<endl;
cout<<" 超级富豪(五星): 32级"<<endl;
cout<<" 超级富豪(六星): 33级"<<endl;
cout<<" 超级富豪(七星): 34级"<<endl;
cout<<" 超级富豪(八星): 35级"<<endl;
cout<<"======================="<<endl;
cout<<" 终级富豪(一星): 36级"<<endl;
cout<<" 终级富豪(二星): 37级"<<endl;
cout<<" 终级富豪(三星): 38级"<<endl;
cout<<" 终级富豪(四星): 39级"<<endl;
cout<<" 终级富豪(五星): 40级"<<endl;
cout<<"$$$$$$$$$$$$$$$$$$$$$$$"<<endl;
cout<<" "<<chsuju[31]<<" 45级"<<endl;
cout<<" "<<chsuju[32]<<" 50级"<<endl;
cout<<endl<<endl;
//判断称号
if(dj<10){
cout<<" ======"<<endl;
cout<<"您现在是: ="<<chsuju[0]<<"="<<endl;
cout<<" ======"<<endl;
}else if(dj<=40){
cout<<" ================"<<endl;
cout<<"您现在是: ="<<chsuju[dj-9]<<"="<<endl;
cout<<" ================"<<endl;
}else if(dj>=45&&dj<=50){
cout<<" ============"<<endl;
cout<<"您现在是: ="<<chsuju[32]<<"="<<endl;
cout<<" ============"<<endl;
}else if(dj>=50){
cout<<" ======"<<endl;
cout<<"您现在是: ="<<chsuju[33]<<"="<<endl;
cout<<" ======"<<endl;
}
if(dj==37){
Sleep(500);
cout<<"下一级有彩蛋!!!"<<endl;
}
if(dj==38){
Sleep(500);
cout<<"彩蛋马上开始!!!" <<endl;
Sleep(1000);
system("start https://www.bilibili.com/video/BV1gc411W7ei/?spm_id_from=trigger_reload&vd_source=22158b889b5360491372ab2771a35e80");
Sleep(10000);
cout<<"下一级还有彩蛋哦!!!"<<endl;
}
if(dj==39){
Sleep(500);
cout<<"彩蛋马上开始!!!" <<endl;
Sleep(1000);
system("start https://www.bilibili.com/video/BV1Kv4y1p7n3/?spm_id_from=333.788.recommend_more_video.2&vd_source=22158b889b5360491372ab2771a35e80");
}
if(dj==40){
cout<<"您富可敌国!!!"<<endl;
cout<<"祝贺你"<<endl;
cout<<" *** ***"<<endl;
cout<<" ***** *****"<<endl;
cout<<" ******* *******"<<endl;
cout<<" *****************"<<endl;
cout<<" *****************"<<endl;
cout<<" ***************"<<endl;
cout<<" *************"<<endl;
cout<<" ***********"<<endl;
cout<<" *********"<<endl;
cout<<" *******"<<endl;
cout<<" *****"<<endl;
cout<<" ***"<<endl;
system("start https://www.bilibili.com/video/BV1hs4y197wU/?spm_id_from=autoNext&vd_source=22158b889b5360491372ab2771a35e80");
cout<<"小提示:"<<endl;
cout<<"40级以上时打开排行榜"<<endl;
cout<<"又可触发彩蛋!!!"<<endl;
cout<<"快去试试吧!" <<endl;
}
if(dj>=45){
if(chsuju[31]=="????"){
system("cls");
chsuju[31]="究级富豪";
string abc[6]={"","????","究???","究级??","究级富?","究级富豪"};
cout<<"????";Sleep(800);cout<<"-";Sleep(1000);cout<<">";Sleep(1200);
system("cls");
for(int i=1;i<=5;i++){
cout<<"????";cout<<"-";cout<<">";
cout<<abc[i];
Sleep(800);
system("cls");
}
Sleep(500);
cout<<"你已触发彩蛋"<<endl;
Sleep(500);
cout<<"观看视频"<<endl;
Sleep(1000);
system("start https://www.bilibili.com/video/BV1ST411h73B/?spm_id_from=333.337.search-card.all.click");
goto to;
}
if(chsuju[32]=="??"){
system("cls");
chsuju[32]="神豪";
string abc[4]={"","??","神?","神豪"};
cout<<"??";Sleep(800);cout<<"-";Sleep(1000);cout<<">";Sleep(1200);
system("cls");
for(int i=1;i<=3;i++){
cout<<"??";cout<<"-";cout<<">";
cout<<abc[i];
Sleep(800);
system("cls");
}
Sleep(500);
cout<<"恭喜你!获得最强称号!点个关注吧!作者:爱学c++"<<endl;
system("start https://blog.csdn.net/C5408C?type=blog");
goto to;
}
}
cout<<"按n退出:";
while(1){
if (-32767 == GetAsyncKeyState('N')){
return ;
}
}
}
void maiche(int k){
int shuliang;
if(che_money[k]>money){
cout<<"钱不够,还差"<<che_money[k]-money<<"元"<<endl;
Sleep(800);
return ;
}
cout<<"要1辆按1 要10辆按2 要100辆按3 要1000辆按4 要一万辆按5 要十万辆按6 要一百万辆按7"<<endl;
while(1){
if (-32767 == GetAsyncKeyState('1')){
shuliang=1;
break;
}
if (-32767 == GetAsyncKeyState('2')){
shuliang=10;
break;
}
if (-32767 == GetAsyncKeyState('3')){
shuliang=100;
break;
}
if (-32767 == GetAsyncKeyState('4')){
shuliang=1000;
break;
}
if (-32767 == GetAsyncKeyState('5')){
shuliang=10000;
break;
}
if (-32767 == GetAsyncKeyState('6')){
shuliang=100000;
break;
}
if (-32767 == GetAsyncKeyState('7')){
shuliang=1000000;
break;
}
}
if(((unsigned long long)shuliang*(unsigned long long)che_money)>money){
cout<<"钱不够,还差"<< (unsigned long long)shuliang*(unsigned long long)che_money-money<<"元"<<endl;
Sleep(800);
return ;
}
system("cls");
money=money-che_money[k]*shuliang;
x=x+chemsheng[k]*shuliang;
mc[k]+=shuliang;
cout<<"恭喜获得"<<shuliang<<checi[k]<<cheming[k]<<"!!!"<<endl;
cout<<"按n退出 按m继续买";
while(1){
if (-32767 == GetAsyncKeyState('N')){
return ;
}
if (-32767 == GetAsyncKeyState('M')){
maiche(k);
return ;
}
}
}
//标题输出
void biaoti(){
for(int i=1;i<=21;i++){
cout<<"=";
Sleep(100);
}
cout<<endl;
cout<<"=";
Sleep(100);
cout<<" 一千万亿很简单 ";
Sleep(100);
cout<<"=";
cout<<endl<<"=";
for(int i=1;i<=6;i++){
cout<<" ";
}
cout<<"(2.0.1)";
cout<<" =";
cout<<endl;
Sleep(100);
for(int i=1;i<=21;i++){
cout<<"=";
Sleep(100);
}
cout<<endl;
Sleep(100);
cout<<"=";Sleep(200);
cout<<"备";Sleep(200);
cout<<"注";Sleep(200);
cout<<":";Sleep(400);
cout<<"(";Sleep(200);
cout<<"可";Sleep(200);
cout<<"能";Sleep(200);
cout<<"吧";Sleep(200);
cout<<"~";Sleep(200);
cout<<"~";Sleep(200);
cout<<"~";Sleep(200);
cout<<")";Sleep(200);
cout<<"="<<endl;
Sleep(600);
cout<<"=";Sleep(200);
cout<<" (";Sleep(200);
cout<<"-";Sleep(200);
cout<<"_";Sleep(200);
cout<<"-";Sleep(200);
cout<<"'";Sleep(200);
cout<<")";Sleep(200);
cout<<" ="<<endl;
Sleep(250);
for(int i=1;i<=21;i++){
cout<<"=";
Sleep(100);
}
cout<<endl;
Sleep(800);
cout<<"按n开始游戏"<<endl;
while(1){
if (-32767 == GetAsyncKeyState('N')){
break;
}
}
}
int main(){
hide();
/*
MessageBox(0, TEXT("如果你是刚玩这个游戏,请新建一个名为 data2 的文本文档"), TEXT("注意"), MB_OK);
if (MessageBox(0, TEXT("为了游戏的体验感优良,请不要更改data2文本文档"), TEXT("特别重要提示"), MB_OKCANCEL | MB_ICONINFORMATION) != IDOK){
MessageBox(0, TEXT("既然你不同意,那就别玩了"), TEXT("你个**"), MB_OK);
SetFileAttributes("data2.txt",FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN);
return 0;
}
*/
hide();
biaoti();
hide();
//登录或创建账号
//key_3();
hide();
system("cls");
//daoru();
//Sleep(1000);
//主代码
while(1){
hide();
system("cls");
cout<<"赚钱 按1(赚钱速度为"<<Speed<<")"<<endl;
cout<<"$:"<<money<<" 级别:"<<dj<<" 经验:"<<g<<endl;
cout<<"================="<<endl;
cout<<"=升级--------按2="<<endl;
cout<<"=称号--------按3="<<endl;
cout<<"=买车,买房---按4="<<endl;
cout<<"=挂机--------按5="<<endl;
cout<<"=攻略--------按6="<<endl;
cout<<"=成就--------按7="<<endl;
cout<<"=皮肤--------按8="<<endl;
cout<<"=保存--------按9="<<endl;
cout<<"================="<<endl;
if(guaji>0){
guaji_1();
if(guaji==2&&so==5000) guaji_2();
}
for(unsigned long long i=1;i!=so;i++){
if (-32767 == GetAsyncKeyState('1')){
X++;
money=money+Speed;
if(X%X_Speed==0&&X!=0){
g=g+1;
Speed+=Speed*0.05;
}
break;
}
if (-32767 == GetAsyncKeyState('2')){
unsigned long long Speed1=0;
while(1){
system("cls");
cout<<"=========升级========="<<endl;
cout<<"=退出 按1="<<endl;
cout<<"=升级赚钱速度 按2="<<endl;
cout<<"=升级加经验速度 按3="<<endl;
cout<<"=升级挂机 按4="<<endl;
cout<<"======================"<<endl;
while(1){
if (-32767 == GetAsyncKeyState('2')){
if(Speed<8) Speed1=Speed+2;
else{
Speed1=Speed+Speed*0.15;
}
cout<<"赚钱速度:"<<Speed<<"->"<<Speed1<<endl;
cout<<"等级:"<<dj<<"->"<<dj+1<<endl;
cout<<"要"<<f<<"元"<<endl;
cout<<"确定升级吗?(y/n)"<<endl;
while(1){
if (-32767 == GetAsyncKeyState('Y')){
if(money<f){
system("cls");
cout<<"钱不够,还差"<<f-money<<"元"<<endl;
Sleep(800);
break;
}else{
dj=dj+1;
if(Speed<8) Speed=Speed+2;
else{
Speed+=Speed*0.15;
}
money=money-f;
f+=f*0.45;//f+=f/100*65;
f+=f*0.15;//f+=f/100*65;
cout<<"已升级"<<endl;
Sleep(500);
break;
}
}
if (-32767 == GetAsyncKeyState('N')){
break;
}
}
break;
}
if (-32767 == GetAsyncKeyState('3')){
if(g_dj==6){
cout<<"加经验所需的赚钱次数:"<<X_Speed<<endl;
cout<<"经验等级:"<<g_dj<<endl;
cout<<"已满级"<<endl;
Sleep(1000);
break;
}
cout<<"加经验所需的赚钱次数:"<<X_Speed<<"->"<<X_Speed-5<<endl;
cout<<"经验等级:"<<g_dj<<"->"<<g_dj+1<<endl;
cout<<"要"<<X_money<<"元"<<endl;
cout<<"确定升级吗?(y/n)"<<endl;
while(1){
if (-32767 == GetAsyncKeyState('Y')){
if(money<X_money){
system("cls");
cout<<"钱不够,还差"<<X_money-money<<"元"<<endl;
Sleep(800);
break;
}else{
g_dj=g_dj+1;
money=money-X_money;
X_Speed=X_Speed-5;
X_money*=3;
cout<<"已升级"<<endl;
Sleep(500);
break;
}
}
if (-32767 == GetAsyncKeyState('N')){
break;
}
}
break;
}
if (-32767 == GetAsyncKeyState('4')){
if(guaji==2){
cout<<"已满级"<<endl;
Sleep(800);
break;
}
if(dj<15){
cout<<"等级不够,还差"<<15-dj<<"级"<<endl;
Sleep(800);
break;
}else if(dj>=15&&dj<25&&guaji==1){
cout<<"等级不够,还差"<<25-dj<<"级"<<endl;
Sleep(800);
break;
}
if(guaji==0){
cout<<"可升级为自动赚钱"<<endl;
cout<<"要1000000元"<<endl;
cout<<"确定升级吗?(y/n)"<<endl;
}
if(guaji==1){
cout<<"可升级为自动赚钱加自动升级"<<endl;
cout<<"要100000000元"<<endl;
cout<<"确定升级吗?(y/n)"<<endl;
}
while(1){
if (-32767 == GetAsyncKeyState('Y')){
if(money<guaji_yao[guaji]){
system("cls");
cout<<"钱不够,还差"<<guaji_yao[guaji]-money<<"元"<<endl;
Sleep(800);
break;
}else{
so=5000;
guaji++;
money=money-guaji_yao[guaji];
cout<<"已升级"<<endl;
Sleep(500);
break;
}
if(guaji==2)MessageBox(0, TEXT("按c可存钱,再按c可继续自动升级"), TEXT("注意"), MB_OK);
}
if (-32767 == GetAsyncKeyState('N')){
break;
}
}
break;
}
if (-32767 == GetAsyncKeyState('1')){
goto go;
}
}
}
go: break;
}
if (-32767 == GetAsyncKeyState('3')){
paiming();
system("cls");
break;
}
if (-32767 == GetAsyncKeyState('4')){
while(1){
int c=0,k=0;
system("cls");
cout<<"买车:1 买房(未完成):2 退出:3 $:"<<money<<" 名声:"<<x<<" 仓库:4"<<endl;
while(1){
if (-32767 == GetAsyncKeyState('1')){
while(1){
system("cls");
cout<<"=========================买车========================"<<endl;
cout<<"==1000$ 自行车 (名声+1) 按1 =="<<endl;
cout<<"==5000$ 小电驴 (名声+6) 按2 =="<<endl;
cout<<"==7000$ 二手摩托车 (名声+10) 按3 =="<<endl;
cout<<"==10000$ 小摩托车 (名声+60) 按4 =="<<endl;
cout<<"==20000$ 电动摩托车 (名声+130) 按5 =="<<endl;
cout<<"==100000$ 汽油摩托车 (名声+2630) 按6 =="<<endl;
cout<<"==3000000$ 二手汽车 (名声+3950) 按7 =="<<endl;
cout<<"==10000000$ 小汽车 (名声+13160) 按8 =="<<endl;
cout<<"==50000000$ 新能源汽车 (名声+65810) 按9 =="<<endl;
cout<<"==200000000$ 汽油汽车 (名声+263270) 按a =="<<endl;
cout<<"==1000000000$ 私人飞机 (名声+1316350) 按b =="<<endl;
cout<<"==5000000000$ 大型私人飞机 (名声+6581700) 按c =="<<endl;
cout<<"==20000000000$ 火箭 (名声+30000000) 按d =="<<endl;
cout<<"==退出 按e =="<<endl;
cout<<"===================================================="<<endl;
cout<<"名声:"<<x<<endl;
cout<<"$:"<<money<<endl;
while(1){
if (-32767 == GetAsyncKeyState('1')){
maiche(1);
break;
}
if (-32767 == GetAsyncKeyState('2')){
maiche(2);
break;
}
if (-32767 == GetAsyncKeyState('3')){
maiche(3);
break;
}
if (-32767 == GetAsyncKeyState('4')){
maiche(4);
break;
}
if (-32767 == GetAsyncKeyState('5')){
maiche(5);
break;
}
if (-32767 == GetAsyncKeyState('6')){
maiche(6);
break;
}
if (-32767 == GetAsyncKeyState('7')){
maiche(7);
break;
}
if (-32767 == GetAsyncKeyState('8')){
maiche(8);
break;
}
if (-32767 == GetAsyncKeyState('9')){
maiche(9);
break;
}
if (-32767 == GetAsyncKeyState('A')){
maiche(10);
break;
}
if (-32767 == GetAsyncKeyState('B')){
maiche(11);
break;
}
if (-32767 == GetAsyncKeyState('C')){
maiche(12);
break;
}
if (-32767 == GetAsyncKeyState('D')){
maiche(13);
break;
}
if (-32767 == GetAsyncKeyState('E')){
goto go1;
}
}
system("cls");
}
}
if (-32767 == GetAsyncKeyState('2')){
system("cls");
cout<<"========================================="<<endl;
cout<<"==5000$ 合租小房子 (名声+2) 按1=="<<endl;
cout<<"==36000$ 合租大房子 (名声+6) 按2=="<<endl;
cout<<"==100000$ (名声+2) 按3=="<<endl;
cout<<"========================================="<<endl;
break;
}
if (-32767 == GetAsyncKeyState('3')){
goto go1;
}
if (-32767 == GetAsyncKeyState('4')){
system("cls");
for(int i=1;i<=13;i++){
cout<<"您的"<<cheming[i]<<"有"<<mc[i]<<checi[i]<<endl;
}
Sleep(500);
cout<<"按n退出"<<endl;
while(1){
if (-32767 == GetAsyncKeyState('N')){
break;
}
}
break;
}
}
}
go1: ;
system("cls");
break;
}
if (-32767 == GetAsyncKeyState('5')){
if(guaji>0){
cout<<"无效操作"<<endl;
Sleep(800);
break;
}
long long guaji=0;//金钱
int gjsj=0;//时间
int as=-1;
Sleep(200);
MessageBox(NULL, "挂机中按n退出", "注意", MB_OK);
MessageBox(NULL, "最多挂机100分钟,每秒获得一次金钱。", "注意", MB_OK);
while(1){
system("cls");
cout<<"退出按1,挂机按2"<<endl;
while(1){
if (-32767 == GetAsyncKeyState('1')){
break;
}
if (-32767 == GetAsyncKeyState('2')){
system("cls");
cout<<"开始挂机"<<endl;
Sleep(500);
system("cls");
for(int i=0;i<=6000;i++){
cout<<"已挂机"<<i<<"秒"<<endl;
for(int j=1;j<=90;j++){
if (-32767 == GetAsyncKeyState('N')){
as=0;
break;
}
Sleep(1);
}
gjsj++;
if(as==0) break;
X++;
if(X%50==0){
g=g+1;
Speed+=Speed/8;
}
system("cls");
}
money+=(Speed*gjsj);
cout<<"已挂机完毕,您获得了"<<Speed*gjsj<<"元"<<endl;
MessageBox(NULL, "已挂机完毕", "提示", MB_OK);
break;
}
}
break;
}
break;
}
if (-32767 == GetAsyncKeyState('6')){
system("cls");
MessageBox(NULL, "想快点赚钱就快点升级(手动赚钱最快哦!!!)", "攻略", MB_OK);
MessageBox(NULL, "经验也可以增加赚钱速度!", "攻略", MB_OK);
MessageBox(NULL, "记得看称号(到了终级富豪以上有惊喜!!!)", "攻略", MB_OK);
MessageBox(NULL, "没时间玩的话试试挂机,但最多挂机100分钟,挂机也可以加经验哟!", "攻略", MB_OK);
MessageBox(NULL, "买车买房中可以获得成就哦!", "攻略", MB_OK);
MessageBox(NULL, "完成任务可以获得成就哦!", "攻略", MB_OK);
MessageBox(NULL, "好吧,就这样吧,攻略结束^_^", "攻略", MB_OK);
break;
}
if(-32767 == GetAsyncKeyState('7')){
system("cls");
for(int i=1;i<=5;i++){
if(mc[i]>=ccj_yao[i]&&ccj[i]=="未获得"){
cout<<"恭喜获得成就:"<<ccj_ming[i]<<"!!!(买车成就)"<<endl;
ccj[i]="已获得";
Sleep(500);
}
}
for(int i=1;i<=4;i++){
if(zxcj[i]=="未获得"&&money>=zxcj_yao[i]){
cout<<"恭喜获得成就:"<<zxcj_ming[i]<<"!!!(主线成就)"<<endl;
zxcj[i]="已获得";
Sleep(500);
}
}
for(int i=5;i<=7;i++){
if(zxcj[i]=="未获得"&&x>=zxcj_yao[i]){
cout<<"恭喜获得成就:"<<zxcj_ming[i]<<"!!!(主线成就)"<<endl;
zxcj[i]="已获得";
Sleep(500);
}
}
for(int i=8;i<=10;i++){
if(zxcj[i]=="未获得"&&g>=zxcj_yao[i]){
cout<<"恭喜获得成就:"<<zxcj_ming[i]<<"!!!(主线成就)"<<endl;
zxcj[i]="已获得";
Sleep(500);
}
}
cout<<"=======================买车成就======================="<<endl;
cout<<"=1.好多自行车 (拥有自行车10000辆) "<<ccj[1]<<"="<<endl;
cout<<"=2.小电驴大亨 (拥有小电驴10000辆) "<<ccj[2]<<"="<<endl;
cout<<"=3.谁没二手摩托车? (拥有二手摩托车10000辆) "<<ccj[3]<<"="<<endl;
cout<<"=4.骑上我心爱的小摩托 (拥有小摩托车10000辆) "<<ccj[4]<<"="<<endl;
cout<<"=5.坐上我心爱的小汽车 (拥有小汽车10000辆) "<<ccj[5]<<"="<<endl;
cout<<"=======================主线成就======================="<<endl;
cout<<"=1. 第一桶金 (赚钱速度>=50元) "<<zxcj[1]<<"="<<endl;
cout<<"=2. 第二桶金 (赚钱速度>=520元) "<<zxcj[2]<<"="<<endl;
cout<<"=3. 第三桶金 (赚钱速度>=54088元) "<<zxcj[3]<<"="<<endl;
cout<<"=4. 第四桶金 (赚钱速度>=114514元) "<<zxcj[4]<<"="<<endl;
cout<<"=5. 名声大大嘀 (获得99999名声) "<<zxcj[5]<<"="<<endl;
cout<<"=6. 名声多多嘀 (获得999999名声) "<<zxcj[6]<<"="<<endl;
cout<<"=7. 车太多了 (获得99999999名声) "<<zxcj[7]<<"="<<endl;
cout<<"=8. 经验小达人 (获得50经验) "<<zxcj[8]<<"="<<endl;
cout<<"=9. 经验达人 (获得250经验) "<<zxcj[9]<<"="<<endl;
cout<<"=10.经验大达人 (获得520经验) "<<zxcj[10]<<"="<<endl;
cout<<"======================================================"<<endl;
Sleep(500);
cout<<"按n退出"<<endl;
while(1){
if (-32767 == GetAsyncKeyState('N')){
break;
}
}
break;
}
if (-32767 == GetAsyncKeyState('8')){
for(int i=0;i<=11;i++){
if(pifu_yao[i]<=dj) pifu[i]="已获得";
}
while(1){
system("cls");
cout<<"================皮肤==============="<<endl;
cout<<"=白色 (免费) 按1 ="<<endl;
cout<<"=蓝色 (等级要为3) 按2 ("<<pifu[0]<<")="<<endl;
cout<<"=绿色 (等级要为6) 按3 ("<<pifu[1]<<")="<<endl;
cout<<"=红色 (等级要为9) 按4 ("<<pifu[2]<<")="<<endl;
cout<<"=紫色 (等级要为12) 按5 ("<<pifu[3]<<")="<<endl;
cout<<"=灰色 (等级要为15) 按6 ("<<pifu[4]<<")="<<endl;
cout<<"=淡蓝色 (等级要为18) 按7 ("<<pifu[5]<<")="<<endl;
cout<<"=淡绿色 (等级要为21) 按8 ("<<pifu[6]<<")="<<endl;
cout<<"=淡红色 (等级要为24) 按9 ("<<pifu[7]<<")="<<endl;
cout<<"=淡紫色 (等级要为27) 按a ("<<pifu[8]<<")="<<endl;
cout<<"=淡白色 (等级要为30) 按b ("<<pifu[9]<<")="<<endl;
cout<<"=淡黄色 (等级要为33) 按c ("<<pifu[10]<<")="<<endl;
cout<<"=黄色 (等级要为36) 按d ("<<pifu[11]<<")="<<endl;
cout<<"=退出 按e ="<<endl;
cout<<"==================================="<<endl;
while(1){
if (-32767 == GetAsyncKeyState('1')){
system("color 7");
cout<<"已设置为 白色"<<endl;
Sleep(800);
break;
}
if (-32767 == GetAsyncKeyState('2')){
if(dj>=3){
system("color 1");
cout<<"已设置为 蓝色"<<endl;
}else{
system("cls");
cout<<"需再升"<<3-dj<<"级才可获得"<<endl;
}
Sleep(800);
break;
}
if (-32767 == GetAsyncKeyState('3')){
if(dj>=6){
system("color 2");
cout<<"已设置为 绿色"<<endl;
}else{
system("cls");
cout<<"需再升"<<6-dj<<"级才可获得"<<endl;
}
Sleep(800);
break;
}
if (-32767 == GetAsyncKeyState('4')){
if(dj>=9){
system("color 4");
cout<<"已设置为 红色"<<endl;
}else{
system("cls");
cout<<"需再升"<<9-dj<<"级才可获得"<<endl;
}
Sleep(800);
break;
}
if (-32767 == GetAsyncKeyState('5')){
if(dj>=12){
system("color 5");
cout<<"已设置为 紫色"<<endl;
}else{
system("cls");
cout<<"需再升"<<12-dj<<"级才可获得"<<endl;
}
Sleep(800);
break;
}
if (-32767 == GetAsyncKeyState('6')){
if(dj>=15){
system("color 8");
cout<<"已设置为 灰色"<<endl;
}else{
system("cls");
cout<<"需再升"<<15-dj<<"级才可获得"<<endl;
}
Sleep(800);
break;
}
if (-32767 == GetAsyncKeyState('7')){
if(dj>=18){
system("color 9");
cout<<"已设置为 淡蓝色"<<endl;
}else{
system("cls");
cout<<"需再升"<<18-dj<<"级才可获得"<<endl;
}
Sleep(800);
break;
}
if (-32767 == GetAsyncKeyState('8')){
if(dj>=21){
system("color 3");
cout<<"已设置为 浅绿色"<<endl;
}else{
system("cls");
cout<<"需再升"<<21-dj<<"级才可获得"<<endl;
}
Sleep(800);
break;
}
if (-32767 == GetAsyncKeyState('9')){
if(dj>=24){
system("color C");
cout<<"已设置为 淡红色"<<endl;
}else{
system("cls");
cout<<"需再升"<<24-dj<<"级才可获得"<<endl;
}
Sleep(800);
break;
}
if (-32767 == GetAsyncKeyState('A')){
if(dj>=27){
system("color D");
cout<<"已设置为 淡紫色"<<endl;
}else{
system("cls");
cout<<"需再升"<<27-dj<<"级才可获得"<<endl;
}
Sleep(800);
break;
}
if (-32767 == GetAsyncKeyState('B')){
if(dj>=30){
system("color F");
cout<<"已设置为 淡白色"<<endl;
}else{
system("cls");
cout<<"需再升"<<30-dj<<"级才可获得"<<endl;
}
Sleep(800);
break;
}
if (-32767 == GetAsyncKeyState('C')){
if(dj>=33){
system("color E");
cout<<"已设置为 淡黄色"<<endl;
}else{
system("cls");
cout<<"需再升"<<33-dj<<"级才可获得"<<endl;
}
Sleep(800);
break;
}
if (-32767 == GetAsyncKeyState('D')){
if(dj>=36){
system("color 6");
cout<<"已设置为 黄色"<<endl;
}else{
system("cls");
cout<<"需再升"<<36-dj<<"级才可获得"<<endl;
}
Sleep(800);
break;
}
if (-32767 == GetAsyncKeyState('E')){
goto t;
}
}
}
t: break;
}
if (-32767 == GetAsyncKeyState('9')){
system("cls");
cout<<"请复制以下数据到一个文本文档:"<<endl;
printf("%llu %llu %llu %llu %llu %llu %llu\n",money,Speed,f,x,X,X_money,X_Speed);
//cout<<money<<" "<<Speed<<" "<<f<<" "<<x<<" "<<X<<" "<<X_money<<" "<<X_Speed<<endl;
for(int i=0;i<=30;i++){
printf("%d ",mc[i]);
//cout<<mc[i]<<" ";
}
cout<<endl;
for(int i=0;i<=21;i++){
//printf("%s ",ccj[i]);
cout<<ccj[i]<<" ";
if(i==10) cout<<endl;
}
cout<<endl;
for(int i=0;i<=21;i++){
//printf("%s ",zxcj[i]);
cout<<zxcj[i]<<" ";
if(i==10) cout<<endl;
}
cout<<endl;
for(int i=0;i<=11;i++){
//printf("%s ",pifu[i]);
cout<<pifu[i]<<" ";
}
printf("%d %d %d\n",dj,g,g_dj);
//cout<<endl<<dj<<" "<<g<<" "<<g_dj<<endl;
cout<<"按n退出:";
while(1){
if (-32767 == GetAsyncKeyState('N')){
break;
}
}
break;
}
if (-32767 == GetAsyncKeyState('C')){
if(so==5000) so=4999;
if(so==4999) so=5000;
}
}
system("cls");
}
return 0;
}
相关文章:
赚钱游戏 2.0.1 版 (资源免费)
没有c编辑器的可以直接获取资源来玩 #include <iostream> #include <string> #include <windows.h> #include <conio.h> #include <fstream> #include <ctime> #include <time.h> #include <stdio.h> #include <cstring&g…...
服务调用-微服务小白入门(4)
背景 各个服务应用,有很多restful api,不论是用哪种方式发布,部署,注册,发现,有很多场景需要各个微服务之间进行服务的调用,大多时候返回的json格式响应数据多,如果是前端直接调用倒…...
代码随想录算法训练营第三十六天| 435. 无重叠区间、 763.划分字母区间、56. 合并区间
435 题目: 给定一个区间的集合 intervals ,其中 intervals[i] [starti, endi] 。返回 需要移除区间的最小数量,使剩余区间互不重叠 。 题目链接:435. 无重叠区间 - 力扣(LeetCode) 思路: …...
【AIGC调研系列】rerank3是什么
Rerank 3是一个针对企业搜索和检索辅助生成(RAG)系统优化的新型基础模型,它支持多语种、多结构数据搜索,并提供高精度的语义重排。通过这种方式,Rerank 3能够大幅提升响应准确度和降低延迟,同时大幅降低成本…...
Linux下网络编程基础知识--协议
网络基础 这一个课程的笔记 相关文章 协议 Socket编程 高并发服务器实现 线程池 协议 一组规则, 数据传输和数据的解释的规则。 比如说依次发送文件的文件名, 文件的大小, 以及实际的文件, 这样规定发送一个文件的顺序以及发送的每一个部分的格式等可以算是一种协议 型协议 …...
在 VS Code 中使用 GitHub Copilot
Code 结合使用。 GitHub Copilot 是什么 GitHub Copilot 是一个可以帮助你更简单、更快速地编写代码的工具,由 GPT-3 提供支持。你只需编写所需代码的描述——例如,编写一个函数来生成一个随机数,或对一个数组进行排序——Copilot 就会为你…...
使用spring-ai快速对接ChatGpt
什么是spring-ai Spring AI 是一个与 Spring 生态系统紧密集成的项目,旨在简化在基于 Spring 的应用程序中使用人工智能(AI)技术的过程。 简化集成:Spring AI 为开发者提供了方便的工具和接口,使得在 Spring 应用中集…...
免费的 ChatGPT 网站(六个)
🔥博客主页: 小羊失眠啦. 🎥系列专栏:《C语言》 《数据结构》 《C》 《Linux》 《Cpolar》 ❤️感谢大家点赞👍收藏⭐评论✍️ 文章目录 一、insCode二、讯飞星火三、豆包四、文心一言五、通义千问六、360智脑 现在智能…...
arm内核驱动-中断
先介绍个东西 ctags 这个工具可以像keil一样在工程里查找跳转,帮我们找到我们想要的东西。 安装教程可以找到,这里只讲怎么用。 在工程目录(包含所有你会用到的头文件等)下,先加载这个命令,可能要等待…...
第十五届蓝桥杯大赛软件赛省赛 C/C++ 大学 B 组
试题 C: 好数 时间限制 : 1.0s 内存限制: 256.0MB 本题总分:10 分 【问题描述】 一个整数如果按从低位到高位的顺序,奇数位(个位、百位、万位 )上 的数字是奇数,偶数位(十位、千位、十万位 &…...
kotlin编译版本
Kotlin和kapt的流行版本通常随着时间而变化,随着新版本的发布,更多的开发者会迁移到这些新版本。不过,由于Kotlin对向后兼容性的强调,大多数近期的Kotlin版本都支持Java 8。 截至本回答的知识截止日期(2023年ÿ…...
【C#】 删除首/尾部字符
代码 static void Main(string[] args){string str "123abc";string strdelete "abc";string str1 str.Trim(1);string strc str1.Trim(c);string str11 str1.TrimStart(1);string strcc str1.TrimEnd(c);string strabc str.Trim(strdelete.ToCharA…...
第十五篇【传奇开心果系列】Python自动化办公库技术点案例示例:深度解读Python 自动化处理图像在各行各业的应用场景
传奇开心果博文系列 系列博文目录Python自动化办公库技术点案例示例系列 博文目录前言一、行业应用场景介绍二、 **计算机视觉研究与开发示例代码**三、人工智能与机器学习示例代码四、医疗健康领域示例代码五、制造业与质量控制示例代码六、农业与环境科学示例代码七、电子商务…...
什么是MOV视频格式?如何把MP4视频转MOV视频格式?
一,前言 当然可以,MP4视频可以转换为MOV格式。这两种格式都是常见的视频文件格式,它们都可以用于存储和播放视频内容。虽然它们的编码方式和特性有所不同,但使用合适的视频转换工具可以轻松地将MP4视频转换为MOV格式。 二&#…...
整理的微信小程序日历(单选/多选/筛选)
一、日历横向多选,支持单日、双日、三日、工作日等选择 效果图 wxml文件 <view class"calendar"><view class"section"><view class"title flex-box"><button bindtap"past">上一页</button&…...
Unity 人形骨骼动画模型嘴巴张开
最近搞Daz3D玩,导入后挂上动画模型嘴巴张开,其丑无比。 Google了一下,得知原因是Unity没有对下巴那根骨骼做控制,动画系统就会把它放到默认的位置,嘴巴就张开了。找到了3种解决办法。 1.移除动画中对下巴这个骨骼的转…...
Python爬虫-京东商品评论数据
前言 本文是该专栏的第68篇,后面会持续分享python爬虫干货知识,记得关注。 在本专栏之前,笔者有详细介绍京东滑块验证码的解决方法,感兴趣的同学,可以直接翻阅文章《Python如何解决“京东滑块验证码”(5)》进行查看。 而本文,笔者以京东商品详情页的评论数据为例,通过…...
实况窗助力美团打造鸿蒙原生外卖新体验,用户可实时掌握外卖进展
自2023年华为宣布全新HarmonyOS NEXT蓄势待发,鸿蒙原生应用全面启动以来,已有金融、旅行、社交等多个领域的企业和开发者陆续宣布加入鸿蒙生态。其中,美团作为国内头部的科技零售企业,是首批加入鸿蒙生态的伙伴,其下的…...
Go语言mac环境搭建详解
Go语言mac环境搭建详解见视频,视频下方也有讲解具体的操作步骤。 Golang Mac电脑环境搭建、开发工具Vscode配置 Go语言mac环境搭建步骤如下: 1、下载安装Golang Go官网下载地址:https://golang.org/dl/ Go官方镜像站(推荐&…...
房贷还款(C语言)
一、运行结果; 二、源代码; # define _CRT_SECURE_NO_WARNINGS # include <stdio.h> # include <math.h>int main() {//初始化变量值;double m, r 0.01;float d 300000;float p 6000;//运算还款所需月份;m log10…...
系统架构最佳实践 -- 供应链系统架构
供应链系统是现代企业管理中不可或缺的一部分,它涉及到从原材料采购到产品销售的整个生产流程。一个高效的供应链系统可以帮助企业实现成本控制、库存优化和客户满意度提升等目标。在本文中,我们将讨论供应链系统的设计与实践。 一、供应链系统设计 业务…...
SpringCloudAlibaba-整合sentinel(四)
目录地址: SpringCloudAlibaba整合-CSDN博客 这里只关注代码部分,至于sentinel服务UI的实用,后面可以补上 这里做一个改造: 因为sentinel可以和openfeign结合使用,为微服务做熔断降级; 为了方便微服务之间…...
【研发日记】Matlab/Simulink软件优化(一)——动态内存负荷压缩
文章目录 背景介绍 初始代码 优化代码 分析和应用 总结 背景介绍 在一个嵌入式软件开发项目中,有一个使用MATLAB Function编写的算法模块,功能是从一个较大的数组中提取一段数据,然后求均值输出,示例如下: 初始代…...
python使用Flask框架开发API
Flask是一个基于Python的轻量级Web应用程序框架。 安装依赖库 pip install flask pip install werkzeug 上传接口 Python from flask import Flask, request from werkzeug.utils import secure_filenameapp Flask(__name__)app.route(/upload, methods[POST]) def uploa…...
使用hexo+gitee从零搭建个人博客
一、环境准备 1.Node.js:下载 | Node.js 中文网 (nodejs.cn) ,Hexo 是基于Node.js 的博客框架 教程:https://blog.csdn.net/weixin_52799373/article/details/123840137 node -v npm -v 安装 Node.js 淘宝镜像加速器 (cnpm&am…...
绝地求生:杜卡迪来了,这些摩托车技巧不学一下吗?
摩托车在远古版本和现在完全不一样,虽然容易翻车造就了一批玩家“摩托杀手”的外号,但是速度可比今天快多了。 后来在蓝洞的削弱了其加速度,虽然资料上写着最高时速155km/h,但是平时游戏中一般只能拉到110~120km/h。这里写一点摩托…...
openstack安装dashboard后登录网页显示404错误
1. 2.进入该目录vim /etc/httpd/conf.d/openstack-dashboard.conf 增加这一行 WSGIApplicationGroup %{GLOBAL} 重启httpd后就可以访问了...
c# Xml 和 Json 转换方法记录
c# xml 转 json 在C#中,可以使用下面几种方法将XML转换为JSON: 使用Newtonsoft.Json库: using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.Xml;// 从XML字符串转换为JSON字符串 string …...
OpenHarmony南向开发案例:【智能垃圾桶】
样例简介 智能垃圾桶可以通过数字管家应用来监测垃圾桶当前可用容量,提醒主人及时处理垃圾;通过日程管家可以实现和其他智能设备联动。 核心组件位置功能距离传感器置于垃圾桶盖内侧感应垃圾量红外传感器置于垃圾桶前端感应是否有人靠近光敏电阻开发板…...
每日一题---OJ题: 旋转数组
片头 嗨! 小伙伴们,咱们又见面啦,今天我们一起来学习一道OJ题---旋转数组 emmm,看上去好像没有那么难,我们一起来分析分析 比如: 数组里面有7个元素,分别为 1, 2, 3, 4, 5, 6, 7 , 现在我们将数组中的元素向右轮转3个位置 第一次轮转:将最后一个元素"7"放在第一个…...
怎么在百度做网站/怎么查找关键词排名
Guava — Preconditions 简单的说Preconditions类提供了一堆静态方法,用来检验参数,引用是否为空,数组下表是否越界,然后抛出相应异常,简化代码。 还可格式化输入方式(%s)封装异常信息,看看源代码应该就很…...
中山企业网站制作公司/一个完整的产品运营方案
c线程thread C11/C14 线程教程 thread类官网详解 thread类官网详解 参考链接 文章目录c线程thread1.创建线程2.守护线程3. 可调用对象4. 传参5. 线程的移动和复制6.线程id7. 互斥mutex1.创建线程 直接初始话thread类对象进行创建线程,创建线程后调用join()方法&…...
网站建设案例简介怎么写/seo优化网站推广全域营销获客公司
Qt安装Windows调试器 1. 打开网址:https://developer.microsoft.com/zh-cn/windows/downloads/windows-10-sdk,选择“下载安装程序”,下载“winsdksetup.exe”; 2. 打开“winsdksetup.exe”,按下述步骤操作ÿ…...
创造与魔法官方网站-做自己喜欢的事/北京网
目录 文档用途 详细信息 文档用途 本文介绍向PostgreSQL中加载数据的几种方法。 详细信息 1.服务器端 1.1 COPY/COPY FROM PROGRAM COPY用于在PostgreSQL表和标准文件系统文件之间移动数据。COPY TO把一个表的内容复制到一个文件,而COPY FROM则从一个文件复…...
简单模板网站制作时间/哪个浏览器不屏蔽网站
制作SD更新系统时和用mfgtool工具烧录时,文件如何替换? 答:制作SD更新系统时,请按照需求选择不同mfgimages-myd*文件夹。每个文件夹里面有一个Manifest文件, 里面规定了uboot, kernel, dtb,文件系统的命名规则。新编译的文件放进该…...
重庆交通大学官网网站/百度模拟点击软件判刑了
前言 Mysql 采用多线程进行复制是从 Mysql 5.6 开始支持的内容,但是 5.6 版本下有缺陷,虽然支持多线程,但是每个数据库只能一个线程,也就是说如果我们只有一个数据库,则主从复制时也只有一个线程在工作。相当于还是以前…...