對“絕地求生“源碼調節

調整了一些界面和降低游戲難度

#include "c++.h"
using namespace std;
ExMessage msg;
struct ME {int x = 100; int y = 100; int life = 1000; int knapsack[18]; int Maximum_ammunition_capacity = 0;int Ammunition_capacity = 0; int primary_weapon = 0; int movement_speed = 0; int CrossHair[2] = { 0,0 };}me; bool not_game_over = true;
struct ENEMY {int x = 600; int y = 600; int life = 1000; int CrossHair[2] = { 0,0 };}enemy;
void CrossHair_draw() { line(me.x, me.y, me.CrossHair[0], me.CrossHair[1]); FlushBatchDraw();}
void CrossHair_draw_e() { setlinecolor(RED); line(enemy.x, enemy.y, enemy.CrossHair[0], enemy.CrossHair[1]); FlushBatchDraw(); setlinecolor(WHITE); }
void People(int x, int y) { fillcircle(me.x, me.y, 10); CrossHair_draw(); FlushBatchDraw(); }
void start(int x, int y, char c) {char i1[8] = { '!','@','#','$','%','?','*','+' };for (int i = 0; i < 8; i++) { outtextxy(x, y, i1[i]); Sleep(100); FlushBatchDraw(); }outtextxy(x, y, c); FlushBatchDraw();}
void Main_weapon_display() {if (me.primary_weapon == 1) {IMAGE a; loadimage(&a, _T("QW-M416 - x.jpg")); putimage(me.x-50,me.y-30, &a);FlushBatchDraw();}if (me.primary_weapon == 2) { IMAGE a; loadimage(&a, _T("QW-S686 - x.jpg")); putimage(me.x - 50, me.y - 30, &a); FlushBatchDraw(); }if (me.primary_weapon == 3) { IMAGE a; loadimage(&a, _T("QW-M24 - x.jpg")); putimage(me.x - 50, me.y - 30, &a); FlushBatchDraw(); }IMAGE a; loadimage(&a, _T("QW-M416 - x.jpg")); putimage(enemy.x - 50,enemy.y - 30, &a); FlushBatchDraw();}
bool timecout() {int of_time = 0; int p = 0; time_t timep; struct tm* tp; time(&timep); tp = localtime(&timep); p = tp->tm_sec;if (of_time != p) { of_time = p; return false; }else { return true; }}
struct itme { int itme_arrow[600][600]; }itme;
void music_settings(int x) {if (x == 1) { Beep(fa1, 100); Beep(sdo1, 100); }	if (x == 2) { Beep(fa, 200); Beep(do1, 100); Beep(si, 100); Beep(sdo1, 500); }if (x == 3) { Beep(qdo, 100); Beep(qre, 150); Beep(qmi, 200); }if (x == 4) { Beep(sre1, 300); }if (x == 5) { Beep(1000, 2);  }if (x == 6) { Beep(3000, 10); }
}
void enemy_draw() { setfillcolor(RED);fillcircle(enemy.x, enemy.y, 10);
IMAGE a; loadimage(&a, _T("QW-M416 - x.jpg")); putimage(enemy.x - 50, enemy.y - 30, &a); FlushBatchDraw(); setfillcolor(WHITE); }
void enemy_manage() {if (me.x - enemy.x<10 && me.x - enemy.x>-10&&me.y - enemy.y<10 && me.y - enemy.y>-10) {me.life -= 10;music_settings(6);}if (me.life < 0) { not_game_over = false; MessageBox(NULL, _T("你輸了(嘲笑)"), _T(""), MB_OK);}if (enemy.CrossHair[0] > me.x)enemy.CrossHair[0] -= 3;if (enemy.CrossHair[0] < me.x)enemy.CrossHair[0] += 3;if (enemy.CrossHair[1] > me.y)enemy.CrossHair[1] -= 3;if (enemy.CrossHair[1] < me.y)enemy.CrossHair[1] += 3;CrossHair_draw_e();if (rand() % 30 == 0) {if (enemy.x > me.x)enemy.x -= 5;if (enemy.x < me.x)enemy.x += 5;if (enemy.y > me.y)enemy.y -= 5;if (enemy.y < me.y)enemy.y += 5;}if (rand() % 5 == 0) { music_settings(5);if(enemy.CrossHair[0]<(me.x+10)&& enemy.CrossHair[0] > (me.x - 10)&& enemy.CrossHair[1] < (me.y + 10)&& enemy.CrossHair[1] > (me.y - 10)) {me.life -= 1; music_settings(6);}}
}
void loop() {peekmessage(&msg, EM_MOUSE);cleardevice(); IMAGE a; loadimage(&a, _T("R-C(1).jpg")); putimage(0, 0, &a);for (int x = 0; x < 600; x += 40)for (int y = 0; y < 600; y += 40) {if (itme.itme_arrow[x][y] == 1) { IMAGE a; loadimage(&a, _T("QW-M416.jpg")); putimage(x, y, &a); }if (itme.itme_arrow[x][y] == 2) { IMAGE a; loadimage(&a, _T("QW-S686.jpg")); putimage(x, y, &a); }if (itme.itme_arrow[x][y] == 3) { IMAGE a; loadimage(&a, _T("QW-M24.jpg")); putimage(x, y, &a); }if (itme.itme_arrow[x][y] == 11) { IMAGE a; loadimage(&a, _T("WW-醫療包.jpg")); putimage(x, y, &a); }if (itme.itme_arrow[x][y] == 12) { IMAGE a; loadimage(&a, _T("WW-304藍針.jpg")); putimage(x, y, &a); }if (itme.itme_arrow[x][y] == 13) { IMAGE a; loadimage(&a, _T("WW-能量飲料.jpg")); putimage(x, y, &a); }}fillcircle(me.x, me.y, 10); enemy_draw();  Main_weapon_display(); CrossHair_draw(); FlushBatchDraw();}
void Item_refres_management() {for (int x = 0; x < 600; x += 40)for (int y = 0; y < 600; y += 40) {if (itme.itme_arrow[x][y] == 1) { IMAGE a; loadimage(&a, _T("QW-M416.jpg")); putimage(x, y, &a); }if (itme.itme_arrow[x][y] == 2) { IMAGE a; loadimage(&a, _T("QW-S686.jpg")); putimage(x, y, &a); }if (itme.itme_arrow[x][y] == 3) { IMAGE a; loadimage(&a, _T("QW-M24.jpg")); putimage(x, y, &a); }if (itme.itme_arrow[x][y] == 11) { IMAGE a; loadimage(&a, _T("WW-醫療包.jpg")); putimage(x, y, &a); }if (itme.itme_arrow[x][y] == 12) { IMAGE a; loadimage(&a, _T("WW-304藍針.jpg")); putimage(x, y, &a); }if (itme.itme_arrow[x][y] == 13) { IMAGE a; loadimage(&a, _T("WW-能量飲料.jpg")); putimage(x, y, &a); }} Main_weapon_display();}
void itmes_initialization() {for (int x = 0; x < 600; x += 40)for (int y = 0; y < 600; y += 40) {int i = rand() % 15 + 1;if (i == 2)itme.itme_arrow[x][y] = 1;/*步槍*/if (i == 3)itme.itme_arrow[x][y] = 2;/*散彈槍*/if (i == 4)itme.itme_arrow[x][y] = 3;/*狙擊槍*/if (i == 5)itme.itme_arrow[x][y] = 11;/*醫療包*/if (i == 6)itme.itme_arrow[x][y] = 12;/*304藍針*/if (i == 7)itme.itme_arrow[x][y] = 13;/*能量飲料*/}}
void Refresh_backpack() {for (int y = 0; y < 3; y++)for (int i = 0; i < 6; i++) {if (me.knapsack[i + y * 6] == 1) { IMAGE a; loadimage(&a, _T("QW-M416.jpg")); putimage(i * 100, y * 100 + 200, &a); }//12if (me.knapsack[i + y * 6] == 2) { IMAGE a; loadimage(&a, _T("QW-S686.jpg")); putimage(i * 100, y * 100 + 200, &a); }if (me.knapsack[i + y * 6] == 3) { IMAGE a; loadimage(&a, _T("QW-M24.jpg")); putimage(i * 100, y * 100 + 200, &a); }if (me.knapsack[i + y * 6] == 11) { IMAGE a; loadimage(&a, _T("WW-醫療包.jpg")); putimage(i * 100, y * 100 + 200, &a); }if (me.knapsack[i + y * 6] == 12) { IMAGE a; loadimage(&a, _T("WW-304藍針.jpg")); putimage(i * 100, y * 100 + 200, &a); }if (me.knapsack[i + y * 6] == 13) { IMAGE a; loadimage(&a, _T("WW-能量飲料.jpg")); putimage(i * 100, y * 100 + 200, &a); }}}
void Backpack_item_usage_management(int serial_number) {if (me.knapsack[serial_number] == 1 || me.knapsack[serial_number] == 2 || me.knapsack[serial_number] == 3) {int x = MessageBox(NULL, _T("如果要更換主武器請按是,如果要丟棄這把武器請按否,如果手滑了請按取消"), _T(""), MB_YESNOCANCEL);if (x == 6) {me.primary_weapon = me.knapsack[serial_number]; if (me.knapsack[serial_number] == 1)me.Maximum_ammunition_capacity = 40;if (me.knapsack[serial_number] == 2)me.Maximum_ammunition_capacity = 8; if (me.knapsack[serial_number] == 3)me.Maximum_ammunition_capacity = 5;me.Ammunition_capacity = me.Maximum_ammunition_capacity;}if (x == 7)me.knapsack[serial_number] = 0;}if (me.knapsack[serial_number] == 11 || me.knapsack[serial_number] == 12 || me.knapsack[serial_number] == 13) {int x = MessageBox(NULL, _T("如果要使用這個藥品請按確定,如果手滑了請按取消"), _T(""), MB_OKCANCEL); if (x == 1) {if (me.knapsack[serial_number] == 11) { me.life += 80; if (me.life > 1000)me.life = 1000; me.knapsack[serial_number] = 0; }if (me.knapsack[serial_number] == 12) { me.movement_speed += 10; if (me.movement_speed > 30)me.movement_speed = 30; me.knapsack[serial_number] = 0; }if (me.knapsack[serial_number] == 13) { me.life += 20; if (me.life > 1000)me.life = 1000; me.knapsack[serial_number] = 0; }}}Refresh_backpack(); FlushBatchDraw();}
void Backpack_selection_management() {peekmessage(&msg, EM_MOUSE);if (msg.x > 0 && msg.x < 100 && msg.y>200 && msg.y < 225)if (msg.lbutton)Backpack_item_usage_management(0);if (msg.x > 100 && msg.x < 200 && msg.y>200 && msg.y < 225)if (msg.lbutton)Backpack_item_usage_management(1);if (msg.x > 200 && msg.x < 300 && msg.y>200 && msg.y < 225)if (msg.lbutton)Backpack_item_usage_management(2);if (msg.x > 300 && msg.x < 400 && msg.y>200 && msg.y < 225)if (msg.lbutton)Backpack_item_usage_management(3);if (msg.x > 400 && msg.x < 500 && msg.y>200 && msg.y < 225)if (msg.lbutton)Backpack_item_usage_management(4);if (msg.x > 500 && msg.x < 600 && msg.y>200 && msg.y < 225)if (msg.lbutton)Backpack_item_usage_management(5);if (msg.x > 0 && msg.x < 100 && msg.y>300 && msg.y < 325)if (msg.lbutton)Backpack_item_usage_management(6);if (msg.x > 100 && msg.x < 200 && msg.y>300 && msg.y < 325)if (msg.lbutton)Backpack_item_usage_management(7);if (msg.x > 200 && msg.x < 300 && msg.y>300 && msg.y < 325)if (msg.lbutton)Backpack_item_usage_management(8);if (msg.x > 300 && msg.x < 400 && msg.y>300 && msg.y < 325)if (msg.lbutton)Backpack_item_usage_management(9);if (msg.x > 400 && msg.x < 500 && msg.y>300 && msg.y < 325)if (msg.lbutton)Backpack_item_usage_management(10);if (msg.x > 500 && msg.x < 600 && msg.y>300 && msg.y < 325)if (msg.lbutton)Backpack_item_usage_management(11);if (msg.x > 0 && msg.x < 100 && msg.y>400 && msg.y < 425)if (msg.lbutton)Backpack_item_usage_management(12);if (msg.x > 100 && msg.x < 200 && msg.y>400 && msg.y < 425)if (msg.lbutton)Backpack_item_usage_management(13);if (msg.x > 200 && msg.x < 300 && msg.y>400 && msg.y < 425)if (msg.lbutton)Backpack_item_usage_management(14);if (msg.x > 300 && msg.x < 400 && msg.y>400 && msg.y < 425)if (msg.lbutton)Backpack_item_usage_management(15);if (msg.x > 400 && msg.x < 500 && msg.y>400 && msg.y < 425)if (msg.lbutton)Backpack_item_usage_management(16);if (msg.x > 500 && msg.x < 600 && msg.y>400 && msg.y < 425)if (msg.lbutton)Backpack_item_usage_management(17);}
void Backpack_management() {IMAGE a; loadimage(&a, _T("R-C(1) - talk.jpg")); putimage(0, 0, &a); Refresh_backpack(); bool i = true;	FlushBatchDraw();while (i) { if (kbhit()) { char i1 = _getch(); if (i1 == 'p' || i1 == 'P')i = false; } else Backpack_selection_management(); FlushBatchDraw(); }FlushBatchDraw();}
int path_difference() {int xh = 0; int yh = 0;if (enemy.x > me.x)xh = enemy.x - me.x;if (enemy.x < me.x)xh = me.x - enemy.x;if (enemy.y > me.y)yh = enemy.y - me.y;if (enemy.y < me.y)yh = me.y - enemy.y;int xz_r = (xh + yh) / 10;if (xz_r > 100)xz_r = 99;return xz_r;}
void f1() {for (int i = 0; i < 600; i++) {cleardevice(); IMAGE a; loadimage(&a, _T("R-C(1) - win.jpg")); putimage(0, 0, &a);loadimage(&a, _T("R-C(1) - KILL.jpg")); putimage(i, i, &a);  FlushBatchDraw(); if (i % 5 == 0)Sleep(1);}Sleep(500);for (int i = -600; i < 0; i++) { IMAGE a; loadimage(&a, _T("R-C(1) - winr.jpg")); putimage(i,200, &a);  if (i % 5 == 0)Sleep(1); FlushBatchDraw();}}
void shoot() {peekmessage(&msg, EM_MOUSE);if (me.Ammunition_capacity > 0) {cout << "shoot"<<"L"<<me.Ammunition_capacity; me.Ammunition_capacity -= 1; music_settings(5);if ((me.primary_weapon!=2&&(msg.x > (enemy.x - 10) && msg.x<(enemy.x + 10) && msg.y>(enemy.y - 10) && msg.y < (enemy.y + 10)))|| (me.primary_weapon == 2 && (msg.x > (enemy.x - 100) && msg.x<(enemy.x + 100) && msg.y>(enemy.y - 100) && msg.y < (enemy.y + 100)))){if (me.primary_weapon == 1)enemy.life -= 15; if (me.primary_weapon == 2)enemy.life -= (100 - path_difference()); if (me.primary_weapon == 3)enemy.life -= 75;music_settings(6); cout << "FDX"; if (enemy.life < 0) { f1(); MessageBox(NULL, _T("你贏了"), _T(""), MB_OK); not_game_over = false; }}}else{ MessageBox(NULL, _T("沒有子彈"), _T(""), MB_OK); }}
bool f2(int x) {if (me.x <= 570 && x == 1)return true;else if (me.x >= 30 && x == 2)return true;else if (me.y >= 30 && x == 3)return true;else if (me.y <= 570 && x == 4)return true;else return false;}
void key_management() {peekmessage(&msg, EM_MOUSE);if (kbhit()) {char i = _getch();if (i == 'A' || i == 'a')if(f2(2))me.x -= (5 + me.movement_speed); if (i == 'D' || i == 'd')if(f2(1))me.x += (5 + me.movement_speed);if (i == 'W' || i == 'w')if(f2(3))me.y -= (5 + me.movement_speed); if (i == 'S' || i == 's')if(f2(4))me.y += (5 + me.movement_speed);if (i == 'e' || i == 'E')Backpack_management(); if (i == 'k' || i == 'K')shoot(); loop(); FlushBatchDraw();}}
void Mouse_management() {peekmessage(&msg, EM_MOUSE);if (msg.lbutton) {for (int y_1=0; y_1 < 600; y_1 += 40)for (int x_1 = 0; x_1 < 600; x_1 += 40) {if (msg.x >= x_1 && msg.x <= (x_1 + 100) && msg.y >= y_1 && msg.y < (y_1 + 25) && itme.itme_arrow[x_1][y_1] != 0) {bool p = true; for (int j = 0;p&&j<18; j++) {if (me.knapsack[j] == 0) { me.knapsack[j] = itme.itme_arrow[x_1][y_1]; p = false; }}if (p)MessageBox(NULL, _T("背包沒有空間了"), _T(""), MB_OK);}}}if (msg.x != me.CrossHair[0] || msg.y != me.CrossHair[1]){ me.CrossHair[0] = msg.x; me.CrossHair[1] = msg.y; CrossHair_draw();}}
void initialize() {srand(time(0)); initgraph(600, 600); BeginBatchDraw(); start(100, 270, _T('T')); music_settings(1); Sleep(1000); start(200, 270, _T('R')); music_settings(1);  Sleep(1000);start(300, 270, _T('Z')); music_settings(1);  Sleep(1000); start(400, 270, _T('出')); outtextxy(400, 270, _T('出')); music_settings(1); music_settings(4); FlushBatchDraw(); Sleep(1000);start(500, 270, _T('品')); outtextxy(500, 270, _T('品')); music_settings(1); music_settings(4); music_settings(4); FlushBatchDraw(); Sleep(1000);settextcolor(RED); cleardevice(); outtextxy(100, 270, 'T'); outtextxy(200, 270, 'R'); outtextxy(300, 270, 'Z');outtextxy(400, 270, _T('出'));  outtextxy(500, 270, _T('品')); music_settings(2);FlushBatchDraw(); Sleep(3000); cleardevice(); FlushBatchDraw(); for (int i = 0; i < 61; i++) { solidrectangle(0, 0, i * 10, 600); FlushBatchDraw(); Sleep(1); }cleardevice(); outtextxy(230, 270, _T("絕地求生--單人M版")); outtextxy(230, 350, _T("準備就緒-按F開始")); solidrectangle(0, 50, 600, 0); FlushBatchDraw(); _getch(); cleardevice();setfillcolor(BLUE); IMAGE a; loadimage(&a, _T("R-C.jpg")); putimage(0, 0, &a);  solidrectangle(0, 600, 600, 550);  FlushBatchDraw(); settextcolor(WHITE);}
bool Button_commands() {peekmessage(&msg, EM_MOUSE);if (msg.x > 0 && msg.x < 600 && msg.y>550 && msg.y < 600){peekmessage(&msg, EM_MOUSE);setfillcolor(RED); solidrectangle(0, 600, 600, 550); FlushBatchDraw(); if (msg.lbutton){setfillcolor(WHITE); for (int i = 0; i < 61; i++) { solidrectangle(0, 0, i * 10, 600); FlushBatchDraw(); Sleep(1); } return true;}}else { IMAGE a; loadimage(&a, _T("R-C.jpg")); putimage(0, 0, &a); setfillcolor(BLUE); solidrectangle(0, 600, 600, 550);  FlushBatchDraw(); return false; }}
void GameLoop() {while (not_game_over) {key_management();Mouse_management();
cleardevice(); IMAGE a; loadimage(&a, _T("R-C(1).jpg")); putimage(0, 0, &a); Item_refres_management(); cout << "(" << me.life << ")";
fillcircle(me.x, me.y, 10); enemy_draw();  Main_weapon_display(); CrossHair_draw(); enemy_manage(); FlushBatchDraw();}}
void START() {int _time = 30;IMAGE b; loadimage(&b, _T("R-C(1).jpg")); putimage(0, 0, &b);  FlushBatchDraw();for (int y = 300; y > -50; y--) {IMAGE a; loadimage(&a, _T("R-C(1).jpg"));putimage(0, 0, &a); IMAGE b; loadimage(&b, _T("R-C(1)(1).jpg")); putimage(0, y, &b); FlushBatchDraw(); Sleep(1); cleardevice();	}cleardevice(); putimage(0, 0, &b); while (_time > 0) { FlushBatchDraw(); if (timecout())_time--; key_management(); }cleardevice(); IMAGE e; loadimage(&e, _T("R-C(1)F3.jpg")); putimage(0, 0, &e); FlushBatchDraw(); Sleep(1000); cleardevice();loadimage(&e, _T("R-C(1)F2.jpg")); putimage(0, 0, &e); FlushBatchDraw(); Sleep(1000); cleardevice();loadimage(&e, _T("R-C(1)F1.jpg")); putimage(0, 0, &e); FlushBatchDraw(); Sleep(1000); cleardevice();loadimage(&e, _T("R-C(1)FGO.jpg")); putimage(0, 0, &e); FlushBatchDraw(); Sleep(1000); cleardevice();cleardevice(); IMAGE a; loadimage(&a, _T("R-C(1).jpg")); putimage(0, 0, &a); itmes_initialization();GameLoop();}
int main() {initialize(); while (1) { while (!Button_commands());  START(); 	return 0;}} 

要下載壓縮包的來主頁下,沒有壓縮包圖片玩不了

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/697272.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/697272.shtml
英文地址,請注明出處:http://en.pswp.cn/news/697272.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

springboot/ssm倉庫管理系統Java貨物出入庫管理系統wms系統web

springboot/ssm倉庫管理系統Java貨物出入庫管理系統wms系統web 基于springboot(可改ssm)vue項目 開發語言&#xff1a;Java 框架&#xff1a;springboot/可改ssm vue JDK版本&#xff1a;JDK1.8&#xff08;或11&#xff09; 服務器&#xff1a;tomcat 數據庫&#xff1a…

Vi/Vim 使用小竅門,如何消除搜索后的關鍵字高亮

Vim/Vi 基本上是 *nix 世界最受歡迎的編輯器了&#xff0c;不知道為什么&#xff0c;一直以來覺得和 Emacs 比起來&#xff0c;Vim 更加有親和力。用起來很舒服。 今天就記錄一個困擾了我很久的問題。 大家應該都知道&#xff0c;在 Vi 里面如果要搜索某個關鍵字&#xff0c;…

C語言開發教程

C語言開發教程 電子書下載 下載地址 第一章 導言 1.1 入門 1.2 變量與算術表達式 1.3 for語句 1.4 符號常量 1.5 字符輸入/輸出 1.6 數組 1.7 函數 1.8 參數--傳值調用 1.9 字符數組 1.10 外部變量與作用域 第二章 類型、運算符與表達式 2.1 變量名 2.2 數據類型及長度 2.3 常…

汽車會撞死人,應不應該限制汽車?

激進派表示事故率很低&#xff0c;損失相比汽車帶來的收益不值一提&#xff0c;不能限制汽車 保守派表示行人什么也沒有做錯&#xff0c;卻飛來橫禍&#xff0c;只要發生一起事故&#xff0c;可能對一個家庭就是滅頂之災&#xff0c;應該嚴格限制汽車 兩邊都有道理&#xff0c…

Python-pdfplumber讀取PDF內容

文章目錄 前言一、pdfplumber模塊1.1 pdfplumber的特點1.2 pdfplumber.PDF類1.3pdfplumber.Page類 二 pdfplumber的使用2.1 加載PDF2.2 pdfplumber.PDF 類2.3 pdfplumber.Page 類2.4 讀取PDF2.5 讀取PDF文檔信息2.6 查看總頁數2.7 查看總頁數讀取第一頁的寬度&#xff0c;頁高等…

263集成客服系統:提升電商平臺用戶體驗

{連接&#xff1a;無縫整合客服渠道} 在電子商務領域&#xff0c;客服是保持客戶滿意度和忠誠度的關鍵因素。263集成客服系統允許電商平臺無縫連接到各種客服通道&#xff0c;包括在線聊天、電子郵件和社交媒體等。這種無代碼開發方式不僅消除了傳統API開發的復雜性&#xff…

使用Java調用Cplex求解帶時間窗的車輛路徑問題

使用Java調用Cplex求解VRPTW問題 一、帶時間窗車輛路徑優化問題&#xff08;Vehicle Routing Problem with Time Window&#xff0c;VRPTW&#xff09;1.1 問題描述1.2 模型構建 二、使用Java調用Cplex求解VRPTW問題2.1 完整代碼2.2 求解結果 三、求解過程中踩的坑 一、帶時間窗…

DevOps:實現軟件開發與運維的協同革命

DevOps作為一種新型的軟件開發和運維模式&#xff0c;在當今信息技術領域引起了廣泛關注和應用。本文通過對DevOps的定義、原則、核心實踐以及優勢等方面進行探討&#xff0c;旨在深入剖析DevOps對軟件開發與運維的革命性影響&#xff0c;并從實踐角度探討其在現代軟件開發中的…

VsCode編譯wxWidgets的HelloWorld

wxWidgets 環境搭建 在wxWidgets 官網下載頁面點擊Download Windows Binaries選擇TDM-GCC 10.3和MinGW-w64 8.1下的頭文件和開發包進行下載。這兒我們會用兩種 gcc 編譯器進行對比&#xff0c;所以下載 2 個種編譯器對應的庫文件。正常只需根據自己安裝的編譯器下載對應的 1 種…

[每周一更]-(第88期):Nginx 之 proxy_pass使用詳解

proxy_pass 指令用于指定后端服務器的地址&#xff0c;可以采用以下不同的格式&#xff1a; 直接指定地址和端口&#xff1a; location / {proxy_pass http://backend_server:8080; }這將請求代理到 http://backend_server:8080。 使用變量&#xff1a; location / {set $ba…

petalinux_zynq7 驅動DAC以及ADC模塊之五:nodejs+vue3實現web網頁波形顯示

前文&#xff1a; petalinux_zynq7 C語言驅動DAC以及ADC模塊之一&#xff1a;建立IPhttps://blog.csdn.net/qq_27158179/article/details/136234296petalinux_zynq7 C語言驅動DAC以及ADC模塊之二&#xff1a;petalinuxhttps://blog.csdn.net/qq_27158179/article/details/1362…

flutter開發實戰-手勢Gesture與ListView滾動競技場的可滑動關閉組件

flutter開發實戰-手勢Gesture與ListView滾動競技場的可滑動關閉組件 最近看到了一個插件&#xff0c;實現一個可滑動關閉組件。滑動關閉組件即手指向下滑動&#xff0c;組件隨手指移動&#xff0c;當移動一定位置時候&#xff0c;手指抬起后組件滑出屏幕。 一、GestureDetect…

大保司保費貴,是否物有所值?

《大保司保費貴&#xff0c;是否物有所值》 這是羅師兄的原創文章 預計8-9分鐘讀完 作者&#xff1a;羅師兄 微信號&#xff1a;luoyun515 當我們想要買一份重疾險、儲蓄險等長期險時&#xff0c; 我們會發現&#xff0c;同樣的保障責任和保額&#xff0c; 不同保險公司的…

基于AdaBoost算法的情感分析研究-微博情感分析-文本分類

基于AdaBoost算法的情感分析研究 摘 要 隨著互聯網的快速發展&#xff0c;各類社交媒體平臺如微信、QQ等也與日俱增&#xff0c;而微博更是集成了傳統網站、論壇、博客等的優點&#xff0c;并加上了人與人之間的互動性、關系親密程度等多種智能算法&#xff0c;并以簡練的形式…

python安裝與配置2024最新版

對python不熟悉的可以去看看這篇文章python介紹 pytho安裝 來到Python官網&#xff1a;https://www.python.org/ 然后 選著download列表下的windows , 然后加進入python各個版本的下載界面 可以看到截止2024年2月22日,最新版是3.12.2 但是我們一般下載穩定版 如下,點擊連接進…

設計模式學習筆記 - 面向對象 - 5.接口和抽象類的區別

簡述 在面向對象編程中&#xff0c;抽象類和接口是常被用到的語法概念&#xff0c;是面向對象四大特性&#xff0c;以及很多設計模式、設計思想、設計原則實現的基礎。它們之間的區別是什么&#xff1f;什么時候用接口&#xff1f;什么時候用抽象類&#xff1f;抽象類和接口存…

解決兩個MySQL5.7報錯

目錄 1.啟動不了MySQL&#xff0c;報錯缺少MSVCR120.dll去官網下載vcredist_x64.exe運行安裝進入管理員CMD 2.本地計算機 上的 mysql 服務啟動后停止。某些服務在未由其他服務或程序使用時將自動停止&#xff0c;Fatal error: Can‘t open and lock privilege tables: Table ‘…

wpf menu 菜單 快捷鍵

界面快捷鍵資源 CtrlF F3可加入其它&#xff0c;自行定義 Page可改為Windows xaml文件 <Style TargetType"{x:Type DataGrid}"> <Setter Property"ContextMenu"> <Setter.Value> <ContextMenu St…

實習日志28

1.醫院賬套系統換新&#xff0c;卡片數據轉移 1.1.修改舊導出的Excel 1.2.嘗試導入新系統 1.3.修改導入數據再次導入即可 這個系統做的限制條件比較多&#xff0c;代碼健壯性不錯。 先在Excel表格里改好批量的&#xff0c;再導入檢查&#xff0c;改一些細節的比較快捷。 2.…

套接字(Sockets)編程——逆向分析向

套接字&#xff08;Sockets&#xff09;編程 套接字&#xff08;Sockets&#xff09;編程是一種網絡編程技術&#xff0c;用于在不同計算機之間或同一臺計算機上的不同進程之間進行通信。在套接字編程中&#xff0c;我們創建套接字&#xff0c;這是一個支持網絡請求和響應的端…