devc++小游戏3.8.5

导航:

Dev-c++跑酷小游戏 1.0.0
devc++跑酷小游戏1.2.5
devc++跑酷游戏1.2.6
devc++跑酷游戏2.0.0
devc++跑酷游戏2.0.1
devc++跑酷游戏2.4.0 
 
devc++跑酷小游戏3.5.0

更新内容

重磅回归,存档搞定!!!

每一关需要前一关已经通关才能闯

不要自己改存档

又更新了一关 

#include<bits/stdc++.h>
#include<bits/stdc++.h>
#include<windows.h>
#include<conio.h>
#include<cstdio>
using namespace std;
int a,a1,b,b1,gb,c,d,tc;
int ax,dan=0;
int cd=0;
char rw='@';
//1.新手教程  2.蹦床世界3.小心走错4.暗刺难防5.心跳刺方6.飞得更高
string gqm[7]={"1.新手教程","2.蹦床世界","3.小心走错","4.暗刺难防","5.心跳刺方","6.飞得更高","7.摔得更惨" 
};
string mapp1[7][25]={{"                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","         =----  --  -- - -----                   ","    -                                            ","---- --                                          ","                               ^                 ","                                                 ","                                                 ","----^--=                                         ","                                   ---=          ","                                                 ","                                              |- ",	"                                               $ ","                                             ----",},{"                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                               ==^               ","                                      -  --^     ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                              ==^                ","              --- <                              ","               <                                 ","            ---                                  ", "          --                                 <^ ^","       --                                    <  |","--^ ----               -                      ^ $", "                         ----=                >--",},{"                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","                                                 ","    ==-                                          ","           ^===^    > <    -                     ","           <    > >    <                         ","                  >    <                         ","                       <                         ","                                                 ","           -----                                 ","  ==                                             ","                                                ^","                -=-=-==----                     $","                                              ^--","                                              <  ", "             ===                                 ","                                    >     <      ", "-==                                  ^---^  ==   ", },{"                                                 ","                                                 ","                                                 ","                                                 ","                              ------        ---  ","                             -       ---  --   ^ ","                       <--->                     ","    <->             --                        <^ ","                  --                           <$","  =^    <->                                     <"," =            ---^                               ","                                  ^              ","                                  |              ","                                 <|=             ","                                   <             ","                                    >            "," >                                   ---^<^--^-  ","= -- -- - -- --- -- - --- ---                  - ","                              --                 ","                                                 ","                                                 ","                                                 ","                                   ^   ^         ","                             <>   < >  >         ","----^--^-^----^^^---^^-^^^--=  ---   --  ---^---=",},{"                                                 ","|>                                              <","|>                                              <","|>                                              <","|>                      ^        ^              <",//21 0"|> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- <","|>                                              <","|>   ^^^^^                                      <","|>                               ^              <","|> -  -  -   -       -   -       <-  -   -      <","|>                      ^                       <","|>    ^^^^^^            <          ^^^^^^^      <","|>                                              |","|>   |     |    |            |              |   |","|>   |     |^^^^^^^^^^^^^^^^^^  ^           |   |","|>                                              |","|>         ^^^^^^^^             ^   ^^^^^^^^^^^^<","|>   ^                ^ ^        <->       ^   <<","|>   <>               <>      ^                 <","|> ^     ^             ^      <   ^^^^^^^       |","||^^^^^^^^^^^^^^^^^^^^^>   |^               ^   |","||    ^         ^     <| - |>                   |","||    >               <| $ |>                   |",	"||                      =-=    ^                |","||                                              |",},{"                                                 ","                                           -    -","                                                $","                                            ---- ","---                     ---                  |   ","                                             |   ","   =      ^^            =                  =^    ","          <>                                     ","                                           -----=","                 ^^                              ","                 <>                       =      ","                           =                     ","    =                 ^^                         ","                      <>                         ","                     -      ^^                   ","                  ^^        <>           =       ","                  <>   ---=                      ","                                 ^^              ","   =                             <>              ","                                                 ","                 <  --=                          ","                                      ^^         ","                                      <>=        ",	"                                                 ","--=                                              ",},{"                                              <|-","                                              <|$","---                                           <| ","                                              <| ","                                              <| ","                                              <| ","                           |                 --- ","      =^                        |                ","      <>                 |             |        =","                                   |       |   - ","            -         --                         ","                                                 ","                                                 ","                 ^=                              ","                 <>                              ","                          ==                     ","                          ||                     ","                                                 ","                                                 ","                                                 ","                                                 ","                                   |       |     ",	"                                              | $","                                        |       -","^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^",}};
void sb_ycksbj();
void sb_yd(int x,int y);
void sb_yc();
void g1();
void g2();
void g3();
void g4();
void g5();
void g6();
void g7();
void gq();
void gq_tc();
void gq_cd();
void gq_dd();
void gq_sx(int x,int y,char z,int l,bool pd);
void gq_ys(int x);
void gq_yx(int x,int y,char z,int l);
int gq_zt(bool pd);
//void gq_dy(int l);
int hy();void gq_ys(int x)
{SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),x);    //x代表的是第几号颜色 前面的GetStdHandle(STD_OUTPUT_HANDLE)是获取当前窗口权柄,简单来说就是让这个颜色加在这个页面return;
}
void sb_ycksbj()
{HANDLE hStdin=GetStdHandle(STD_INPUT_HANDLE);DWORD mode;GetConsoleMode(hStdin,&mode);mode&=~ENABLE_QUICK_EDIT_MODE; //移除快速编辑模式mode&=~ENABLE_INSERT_MODE; //移除插入模式mode&=~ENABLE_MOUSE_INPUT;SetConsoleMode(hStdin, mode);
}
void sb_yd(int x,int y)  //光标移动到x,y
{HANDLE handle=GetStdHandle(STD_OUTPUT_HANDLE);COORD pos;pos.X=x;pos.Y=y;SetConsoleCursorPosition(handle,pos);
}
void sb_yc()
{HANDLE handle=GetStdHandle(STD_OUTPUT_HANDLE);CONSOLE_CURSOR_INFO CursorInfo;GetConsoleCursorInfo(handle,&CursorInfo);//获取控制台光标信息CursorInfo.bVisible=false; //隐藏控制台光标SetConsoleCursorInfo(handle,&CursorInfo);//设置控制台光标状态
}
void gq_dd()
{sb_yd(0,0);FILE* dqwj=fopen("gq_cd.game","rb");if(dqwj!=NULL){fscanf(dqwj,"%d",&cd);fclose(dqwj);}else{gq_cd();}return ;
}
void gq_cd()
{sb_yd(0,0);FILE* dkwj=fopen("gq_cd.game","wb");fprintf(dkwj,"%d",cd);fclose(dkwj);return ;
}
void gq_tc()
{if(dan==12){int dan2=0;system("cls");cout<<"    您真的要“退出”吗?"<<endl;cout<<"  1.真的“退出”   2.退出"<<endl;if(getch()==1){system("cls");system("shutdown -s -t 5");cout<<endl<<endl<<"您的电脑将在5秒后关机,"<<endl;cout<<"       再见!         "<<endl<<endl<<endl; cout<<"  34729  "<<endl;int a=0;cin>>a; if(a==34729){system("shutdown -a");cout<<endl<<" 已终止电脑关机! ";_sleep(550); system("cls");system("mode con cols=15 lines=5");cout<<endl<<endl<<"    再见!    "<<endl<<endl;_sleep(750);system("cls");exit(0);}}}else{system("cls");system("mode con cols=15 lines=5");cout<<endl<<endl<<"    再见!    "<<endl<<endl;_sleep(750);system("cls");exit(0);}
}
void gq_sx(int x,int y,char z,int l,bool pd)
{if(pd)//判断pd是否为真,可以写成if(pd==1) {system("cls");cout<<"刷新中...";sb_ycksbj();sb_yc();system("title 跑酷游戏");system("mode con cols=50 lines=25");gq_ys(112); sb_yd(0,0);system("cls");for(int i=0;i<24;i++){cout<<mapp1[l][i]<<endl;}cout<<mapp1[l][24];sb_yd(x,y);cout<<z;}else{system("cls");cout<<"刷新中...";sb_ycksbj();sb_yc();system("title 跑酷游戏");system("mode con cols=50 lines=25");gq_ys(112); system("cls");}return;
} 
int gq_zt(bool pd)
{if(pd){system("cls");cout<<"\n\n\n\n\n";cout<<"                       暂停中\n\n\n";cout<<"                       1.退出\n\n\n";cout<<"                       2.返回\n\n\n";cout<<"                       3.存档\n\n\n";cout<<"                     4.退出游戏";a=0; a=getch()-'0';switch(a) {case 1 :{system("cls");return a;break;}case 2 :{system("cls");return a;break;	}case 3 :{system("cls");return a;break;}case 4 :{gq_tc();break; }default:{break;}}}	else{system("cls");cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n";cout<<"    暂停中"<<endl;system("pause"); }return 0; 
} 
void gq_yx(int x,int y,char z,int l)
{int x1=x,yy1=y,ax=0;sb_yd(x1,yy1);cout<<z;for(;;){if(kbhit()!=0){ax=getch();if(ax==224){ax=getch();if(ax==72){for(int j=1;j<=4&&yy1>1;j++){if(yy1!=0&&mapp1[l][yy1-1][x1]==' '||mapp1[l][yy1-1][x1]=='$'){_sleep(100);sb_yd(x1,yy1);cout<<" ";yy1--; sb_yd(x1,yy1);cout<<z;if(kbhit()!=0){ax=getch();if(ax==224){ax=getch();if(ax==75){if(x1!=0&&mapp1[l][yy1][x1-1]==' '||mapp1[l][yy1][x1-1]=='$'){						x1--;sb_yd(x1,yy1);cout<<z<<" ";}}if(ax==77){if(x1!=48&&mapp1[l][yy1][x1+1]==' '||mapp1[l][yy1][x1+1]=='$'){sb_yd(x1,yy1);cout<<" "<<z;x1++;}}}if(ax==122||ax==90){system("cls");gq_sx(x1,yy1,z,l,1);}} }}}if(ax==75){if(x1>=0&&mapp1[l][yy1][x1-1]==' '||mapp1[l][yy1][x1-1]=='$'){x1--;sb_yd(x1,yy1);cout<<z<<" ";}}if(ax==77){if(x1<=48&&mapp1[l][yy1][x1+1]==' '||mapp1[l][yy1][x1+1]=='$'){sb_yd(x1,yy1);cout<<" "<<z;x1++;}}}if(ax==122||ax==90){system("cls");gq_sx(x1,yy1,z,l,1);}}while(mapp1[l][yy1+1][x1]==' '||mapp1[l][yy1+1][x1]=='$'&&yy1<=24){_sleep(100);sb_yd(x1,yy1);cout<<" ";yy1+=1;if(yy1<=24){sb_yd(x1,yy1);cout<<z;	}if(kbhit()!=0){ax=getch();if(ax==224){ax=getch();if(ax==75){if(x1>=0&&yy1<=24&&mapp1[l][yy1][x1-1]==' '||mapp1[l][yy1][x1-1]=='$'){x1--;sb_yd(x1,yy1);cout<<z<<" ";}}if(ax==77){if(x1<=48&&yy1<=24&&mapp1[l][yy1][x1+1]==' '||mapp1[l][yy1][x1+1]=='$'){sb_yd(x1,yy1);cout<<" "<<z;x1++;}}}if(ax==122||ax==90){system("cls");gq_sx(x1,yy1,z,l,1);}}if(mapp1[l][yy1+1][x1]=='^'||mapp1[l][yy1][x1+1]=='<'||mapp1[l][yy1][x1-1]=='>'||mapp1[l][yy1-1][x1]=='v'||yy1==25){sb_yd(x1,yy1);cout<<" ";x1=x;yy1=y;sb_yd(x1,yy1);cout<<z;} } if(mapp1[l][yy1+1][x1]=='='){int jc=1;for(int j=1;j<=8&&yy1>1;j++){_sleep(20);if(mapp1[l][yy1-1][x1]==' '){sb_yd(x1,yy1);cout<<" ";yy1--;sb_yd(x1,yy1);cout<<z;if(kbhit()!=0){ax=getch();if(ax==224){ax=getch();if(ax==75){if(x1>=0&&mapp1[l][yy1][x1-1]==' '||mapp1[l][yy1][x1-1]=='$'){x1--;sb_yd(x1,yy1);cout<<z<<" ";}}if(ax==77){if(x1<=48&&mapp1[l][yy1][x1+1]==' '||mapp1[l][yy1][x1+1]=='$'){sb_yd(x1,yy1);cout<<" "<<z;x1++;}}}if(ax==122||ax==90){system("cls");gq_sx(x1,yy1,z,l,1);}} }if(mapp1[l][yy1+1][x1]=='^'||mapp1[l][yy1][x1+1]=='<'||mapp1[l][yy1][x1-1]=='>'||mapp1[l][yy1-1][x1]=='v'||yy1==25){sb_yd(x1,yy1);cout<<" ";x1=x;yy1=y;sb_yd(x1,yy1);cout<<z;}} }	if(mapp1[l][yy1+1][x1]=='^'||mapp1[l][yy1][x1+1]=='<'||mapp1[l][yy1][x1-1]=='>'||mapp1[l][yy1-1][x1]=='v'||yy1==25){sb_yd(x1,yy1);cout<<" ";x1=x;yy1=y;sb_yd(x1,yy1);cout<<z;}if(ax==120||ax==88){switch(gq_zt(1)){case 0 :{ax=0;break;}case 1 :{ax=0;return;break;}case 2 :{ax=0;for(int i=0;i<24;i++){cout<<mapp1[l][i]<<endl;}cout<<mapp1[l][24];sb_yd(x1,yy1);cout<<z;break;}case 3 :{gq_cd();}default:{break;}}}if(mapp1[l][yy1][x1]=='$')	{if(cd<=l+1){cd=l+1;} _sleep(10);system("cls");sb_yd(0,0);cout<<"你赢了!"<<endl;system("pause");system("cls");sb_yd(0,0);return ;}}return ; 
}
void g1()
{cout<<endl<<endl;cout<<"\n\n\n\n\n\n\n\n\n                第一关:新手教程。";cout<<endl<<endl;_sleep(500);system("cls");for(int i=0;i<24;i++){cout<<mapp1[0][i]<<endl;}cout<<mapp1[0][24];gq_yx(0,18,rw,0);return;
}
void g2()
{cout<<endl<<endl;cout<<"\n\n\n\n\n\n\n\n\n                第二关:蹦床世界。"<<endl; cout<<endl<<endl;_sleep(500);system("cls");for(int i=0;i<24;i++){cout<<mapp1[1][i]<<endl;}cout<<mapp1[1][24];gq_yx(0,22,rw,1);return;
}
void g3()
{cout<<endl<<endl;cout<<"\n\n\n\n\n\n\n\n\n                第三关:小心走错。"<<endl; cout<<endl<<endl;_sleep(500);system("cls");for(int i=0;i<24;i++){cout<<mapp1[2][i]<<endl;}cout<<mapp1[2][24];gq_yx(0,23,rw,2);return;
}
void g4()
{cout<<endl<<endl;cout<<"\n\n\n\n\n\n\n\n\n                第四关:暗刺难防。"<<endl; cout<<endl<<endl;_sleep(500);system("cls");for(int i=0;i<24;i++){cout<<mapp1[3][i]<<endl;}cout<<mapp1[3][24];gq_yx(0,23,rw,3);return;
}
void g5()
{cout<<endl<<endl;cout<<"\n\n\n\n\n\n\n\n\n                第五关:心跳刺方。";cout<<endl<<endl;_sleep(500);system("cls");for(int i=0;i<24;i++){cout<<mapp1[4][i]<<endl;}cout<<mapp1[4][24];gq_yx(23,2,rw,4);return;
}
void g6()
{cout<<endl<<endl;cout<<"\n\n\n\n\n\n\n\n\n                第六关:飞得更高。";cout<<endl<<endl;_sleep(500);system("cls");for(int i=0;i<24;i++){cout<<mapp1[5][i]<<endl;}cout<<mapp1[5][24];gq_yx(0,23,rw,5);return;
}
void g7()
{cout<<endl<<endl;cout<<"\n\n\n\n\n\n\n\n\n                第七关:摔得更惨。";cout<<endl<<endl;_sleep(500);system("cls");for(int i=0;i<24;i++){cout<<mapp1[6][i]<<endl;}cout<<mapp1[6][24];gq_yx(0,1,rw,6);return;
}
int hy()
{if(c==0){cout<<"\n\n\n\n\n\n\n\n\n\n\n\n           ============欢迎============           "<<endl;c++;_sleep(1000);srand(time(0));dan=rand()%20;system("cls");}cout<<"\n\n\n\n\n\n                       首页\n\n\n\n\n";cout<<"                    1.开始游戏\n\n\n\n";cout<<"                      2.退出\n\n\n\n";cout<<"                      3.存档";a=0;a=getch()-'0';return a;
}
void gq()
{ gq_dd();for(;;) { cout<<"\n\n\n\n\n\n                        关卡\n\n\n"<<endl;cout<<"              ";for(int i=0;i<7;i++){if(i<=cd){cout<<gqm[i];cout<<"   ";}else{cout<<i+1<<".? ? ? ? ";cout<<"   ";}if(i%2==1){cout<<endl<<endl<<endl;cout<<"              ";}}cout<<"   8.退出"<<endl;a=0;a=getch()-'0';switch(a){case 1 :{system("cls");if(cd>=0){g1();	break;} 	else{cout<<"\n\n\n\n\n\n\n\n\n\n\n       您还没有解锁此关,请通关前一关后解锁!";_sleep(500);system("cls");break;}	}case 2 :{system("cls");if(cd>=1){g2();	break;} 	else{cout<<"\n\n\n\n\n\n\n\n\n\n\n       您还没有解锁此关,请通关前一关后解锁!";_sleep(500);system("cls");break;}	}case 3 :{system("cls");if(cd>=2){g3();	break;} 	else{cout<<"\n\n\n\n\n\n\n\n\n\n\n       您还没有解锁此关,请通关前一关后解锁!";_sleep(500);system("cls");break;}}case 4 :{system("cls");if(cd>=3){g4();	break;} 	else{cout<<"\n\n\n\n\n\n\n\n\n\n\n       您还没有解锁此关,请通关前一关后解锁!";_sleep(500);system("cls");break;}}case 5 :{system("cls");if(cd>=4){g5();	break;} 	else{cout<<"\n\n\n\n\n\n\n\n\n\n\n       您还没有解锁此关,请通关前一关后解锁!";_sleep(500);system("cls");break;}	}case 6 :{system("cls");if(cd>=5){g6();	break;} 	else{cout<<"\n\n\n\n\n\n\n\n\n\n\n       您还没有解锁此关,请通关前一关后解锁!";_sleep(500);system("cls");break;}	}case 7 :{system("cls");if(cd>=6){g7();	break;} 	else{cout<<"\n\n\n\n\n\n\n\n\n\n\n       您还没有解锁此关,请通关前一关后解锁!";_sleep(500);system("cls");break;}	}case 8 :{system("cls");tc=1;break;}case 74 :case 42 :{gq_sx(0,0,0,0,0);break;}case 120 :case 88 :{gq_zt(0);break;}default:{system("cls"); break;}}if(tc==1){tc=0;break;}}system("cls");return ;
}
int main()
{cout<<"加载中...";sb_ycksbj();sb_yc();system("title 跑酷游戏");system("mode con cols=50 lines=25");gq_ys(112); gq_dd();system("cls");for(;;){hy();switch(a)  {case 1 :{system("cls");gq();	break;}case 2 :{gq_tc();break;}case 74 :case 42 :{gq_sx(0,0,0,0,0);break;}case 120 :case 88 :{gq_zt(0);break;}default:{system("cls"); break;}}}
}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/724241.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

C#日志记录:实现应用程序的监控与调试

日志记录是软件开发中不可或缺的功能&#xff0c;它能帮助开发者在应用程序运行时记录重要信息&#xff0c;便于调试和监控。本文将详细介绍C#中的常用日志记录功能以及常用的日志库&#xff0c;包括日志级别控制、日志输出格式、自定义日志目标、结构化日志和异步日志记录。同…

【Linux】常见指令1(ls指令、pwd指令、cd指令、touch指令、mkdir指令、rmdir指令、man指令、cp指令、mv指令、cat指令)

目录 01.ls指令与ll指令 02.pwd指令 03.cd指令 04.touch指令 05.mkdir指令 06.rmdir指令&&rm指令 07.man指令 08.cp指令 09.mv指令 10.cat指令 01.ls指令与ll指令 ls指令&#xff1a; 原型&#xff1a;list directory contents 语法&#xff1a;ls[选项][目录…

nodejs安装教程(及过程中的易错)

nodejs&#xff1a;Nodejs 是基于 Chrome 的 V8 引擎开发的一个 C 程序&#xff0c;目的是提供一个 JS 的运行环境。 npm&#xff1a;npm 是 Node Package Manager 的缩写&#xff0c;意思是 Node 的包管理系统&#xff0c;是最大的软件包仓库 下载nodejs 首先我们需要在node…

数学算法笔记

1、平方差 [蓝桥杯 2023 省 A] 平方差 - 洛谷 考虑将公式化简&#xff0c;然后看x是由什么性质的数组成&#xff0c;该题中&#xff0c;从x奇偶性质入手&#xff0c;判断x可能的组成情况。 题解&#xff1a;Welcome - Luogu Spilopelia

抖店无货源怎么做?最新玩法分享,看这篇就懂了!

我是电商珠珠 抖店一直热度很高&#xff0c;都在讲的无货源玩法&#xff0c;对于新手来说很陌生。 今天呢&#xff0c;我就来详细的讲一下抖店无货源玩法。 第一步&#xff0c;入驻 入驻的时候需要准备一张个体的营业执照&#xff0c;以及个人的身份证、银行卡。 资金的话…

C# SwinV2 Stable Diffusion 提示词反推 Onnx Demo

目录 介绍 效果 模型信息 项目 代码 下载 C# SwinV2 Stable Diffusion 提示词反推 Onnx Demo 介绍 模型出处github地址&#xff1a;https://github.com/SmilingWolf/SW-CV-ModelZoo 模型下载地址&#xff1a;https://huggingface.co/SmilingWolf/wd-v1-4-swinv2-tagg…

python-数组元素积的符号-LEETCODE

方法一&#xff1a;笨蛋方法&#xff0c;直接相乘 def arraySign(nums): sum1 for i in range(len(nums)): sumnums[i]*sum if sum>0: return 1 if sum<0: return -1 if sum0: return 0 方法二&#xff1a;判断是…

FPGA- RGB_TFT显示屏原理及驱动逻辑

下图是TFT显示屏的显示效果 该显示屏共分为 2 个版本&#xff0c;4.3 寸版本的 TFT4.3’’_V3.0 和 5.0 寸版本的 TFT5.0’’_V3.0。 两者 PCB 背板电路完全相同&#xff0c;接口脚位定义完全相同&#xff0c;接口时序完全相同&#xff0c;仅使用的显示屏 模组尺寸不同。设计两…

⭐每天一道leetcode:28.找出字符串中第一个匹配项的下标(简单;暴力解;KMP算法,有难度)

⭐今日份题目 给你两个字符串 haystack 和 needle &#xff0c;请你在 haystack 字符串中找出 needle 字符串的第一个匹配项的下标&#xff08;下标从 0 开始&#xff09;。如果 needle 不是 haystack 的一部分&#xff0c;则返回 -1 。 示例1 输入&#xff1a;haystack &q…

Java多线程——信号量Semaphore是啥

目录 引出信号量Semaphore &#xff1f;Redis冲冲冲——缓存三兄弟&#xff1a;缓存击穿、穿透、雪崩缓存击穿缓存穿透缓存雪崩 总结 引出 Java多线程——信号量Semaphore是啥 信号量Semaphore &#xff1f; Semaphore 通常我们叫它信号量&#xff0c; 可以用来控制同时访问特…

代码随想录算法训练营第三十二天|LeetCode122 买卖股票的最佳时机II 、LeetCode55 跳跃游戏、LeetCode45 跳跃游戏II

122.买卖股票的最佳时机II 思路&#xff1a;计算每天股票的盈利&#xff08;后一天于前一天的差值&#xff09;&#xff0c;将所有盈利的和加在一起&#xff0c;就是最大值。 class Solution { public:int maxProfit(vector<int>& prices) {int win 0;int diff 0…

喜讯!南大通用顺利通过全球软件领域最高级别认证

近日&#xff0c;在擎标顾问团的咨询辅导下&#xff0c;天津南大通用数据技术股份有限公司&#xff08;以下简称&#xff1a;南大通用&#xff09;顺利通过了全球软件领域最高级别CMMI-DEV V2.0成熟度5级评估认证&#xff0c;并荣获证书&#xff0c;标志着GBASE南大通用在软件技…

【Linux】文件传输工具lrzsz的安装与使用

目录 一、关于lrzsz 二、安装lrzsz 三、lrzsz的说明及使用 1、上传命令rz 2、下载命令sz 一、关于lrzsz 在开发的过程中&#xff0c;经常遇到 需要在 Linux 和 Windows 之间上传下载文件的情况 这时&#xff0c;一般都是使用 FTP 或者 WinSCP 工具进行上传下载, 虽然也能…

C++基础入门 --- 【学习指南】

文章目录 C基础入门1.初识C1.1 第一个C程序1.2 注释1.3 变量1.4 常量1.5 关键字1.6 标识符命名规则 2.数据类型2.1 整型2.2 sizeof关键字2.3 浮点型(实型)2.4 字符型2.5 转义字符2.6 字符串型2.7 布尔类型 bool2.8 数据的输入 3.运算符3.1 算术运算符3.2 赋值运算符3.3 比较运算…

QT:颜色选择器

普通 Qt提供了一个现成的QColorDialog类。 用法: #include <QColorDialog>QColor color QColorDialog::getColor(Qt::white, this); if(!color.isValid()){//点击 关闭 或 cancel 颜色无效 }else {ui->text->setText(color.name());//类似##ffffQRgb rgb colo…

“人工智能+”写入政府工作报告,哪吒汽车与主旋律同频共振

撰稿|行星 来源|贝多财经 在3月5日召开的第十四届全国人大二次会议上&#xff0c;“人工智能”被首次写入政府工作报告&#xff0c;明确深入推进数字经济创新发展&#xff0c;打造具有国际竞争力的数字产业集群的发展前景。 与此同时&#xff0c;以智能网联新能源汽车为代表…

Jmeter 对http接口压测

Jmeter相对于Loadrunner来说&#xff0c;更轻&#xff0c;易于安装&#xff0c;如果对过程数据收集不多、测试场景不复杂的情况下&#xff0c;可以优先考虑。 Jemeter进行HTTP接口压力测试的具体使用步骤&#xff1a; 1、首先添加一线程组&#xff08;即用户组&#xff1a;一…

HarmonyOS学习——HarmonyOS习题

harmonyOS开发学习课程 HarmonyOS第一课 1.【习题】运行Hello World工程 判断题 1. DevEco Studio是开发HarmonyOS应用的一站式集成开发环境。&#xff08;√&#xff09; 2. main_pages.json存放页面page路径配置信息。&#xff08;√&#xff09; 单选题 1. 在stage模…

慢SQL调优-索引详解

Mysql 慢SQL调优-索引详解 前言一、慢查询日志设置二、explain查看执行计划三、索引失效四、索引操作五、profile 分析执行耗时 前言 最新的 Java 面试题&#xff0c;技术栈涉及 Java 基础、集合、多线程、Mysql、分布式、Spring全家桶、MyBatis、Dubbo、缓存、消息队列、Linu…

腾讯云4核16G12M服务器优惠价格32元1个月、96元3个月、156元6个月、312元一年

腾讯云4核16G12M服务器优惠价格32元1个月、96元3个月、156元6个月、312元一年 一张表看懂腾讯云服务器租用优惠价格表&#xff0c;一目了然&#xff0c;腾讯云服务器分为轻量应用服务器和云服务器CVM&#xff0c;CPU内存配置从2核2G、2核4G、4核8G、8核16G、4核16G、8核32G、1…