游戏介绍:
在游戏时间结束之前吃尽可能多的食物
尽可能的长(zhang)长(chang)
然后干掉其他的蛇!
只有 1 个幸存者!

作者の坦白:
我只做了游戏的主体部分,,,没做菜单界面,,,,,,,
因为,,我对菜单界面有太多的想法,,,没个把月做不出来"
而且我现在又必须要复习数学和物理,,,,,,,,,,,
而且我感觉用继承和多态来做菜单界面会更简单,,,,,,
但我现在还不太懂继承和多态,,所以我打算把继承和多态学一学之后再来做菜单界面
不过我已经把接口做好了,可以直接在接口里设置玩家数据:
(共三个玩家槽位)

特色功能(相比于传统的控制台贪吃蛇游戏)说明:
1:采用多线程实现流畅的 双/三 人同时操作。在源码的moduleControl()函数里
2:采用了双缓冲,防止眼睛被闪瞎。(双缓冲的缺点就是不能设置其他的输出颜色啊啊啊啊啊!!!所以你看到的只有白色的符号。)
3:在吃了食物,吃掉比自己小的蛇之后有加分的实时显示。在源码的showRTInfo(string whichScreen) //real time info //这个whichScreen指的是缓冲区的意思,因为我用的是双缓冲。
4:AI蛇:AI的难度设计的刚刚好,不那么笨,也不那么聪明。。。。(我不会做那种毫发无损吃全图的贪吃蛇)在源码robotMovingJudge()函数里
5:摒弃了传统的 “头插尾删” 移动方法,而采用了 “遍历操作” 法,传统的 “头插尾删” 不能做到 ‘吃啥长啥’ (看上面的演示你就懂了,以前写过贪吃蛇的朋友肯定懂我在说什么),而现在采用了“遍历”法以后,对每个蛇的身体进行单独的移动,就可以做到‘吃啥长啥’。在源码snakeMoving()函数里
6:加入了多个部分进行游戏数据的显示,上面,左下角,右边,以及右下角的‘成长值’(在成长值达到100时长 1 个长度)。

下面贴代码!!!呜呜呜,肝了15天肝完的,居然免费就放出来了,,一定要点赞啊!!评论也行!!!这是我第一次发博客!!

哦对!我希望大家在看我代码的时候牢记这两句话:
1:you are noy here for code, you are here for ship product ;Jamie Zawinski
2:When you inherit code form someone alse, sometimes it’s faster to write your own than to reuse theirs. because it’s going to take certain amount of time to understand their code and learn how to use it and understand it well enough to be able to debug it;Jamie Zawinski

#include <iostream>
#include <string>
#include <time.h>
#include <Windows.h>
#include <thread>
#include <functional>
#include <tchar.h>
#include <vector>
#include <list>
#include <deque>
#include <map>
#include <mutex>
#include <future>
#include <queue>
#include <conio.h>
#include <assert.h>

using namespace std;
enum snake_speed{slow=1,middle=2,fast=4};
enum map_size {
mapWidth = 140, mapHigh = 43, playScreenWidth = 120,
playScreenHigh = 40, InfoCornerHigh = 34, InfoCornerWidth = 50
};

using ifDied = bool;
using ifShowed = bool;
using direction = string;
using diedWay = string;
using gameOverWay = string; //"all snakes died" "time run out"

//控制台屏幕缓冲区句柄,创建新的控制台缓冲区
HANDLE hScreenA = CreateConsoleScreenBuffer(
GENERIC_WRITE,//定义进程可以往缓冲区写数据
FILE_SHARE_WRITE,//定义缓冲区可共享写权限
NULL,
CONSOLE_TEXTMODE_BUFFER,
NULL
);
HANDLE hScreenB = CreateConsoleScreenBuffer(
GENERIC_WRITE,//定义进程可以往缓冲区写数据
FILE_SHARE_WRITE,//定义缓冲区可共享写权限
NULL,
CONSOLE_TEXTMODE_BUFFER,
NULL
);
void setHScreenSize(HANDLE& hscreen, int width, int high) {//设置缓冲区窗口大小
//HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
COORD size = { static_cast<SHORT>(width), static_cast<SHORT>(high) };
SetConsoleScreenBufferSize(hscreen, size);//修改屏幕缓冲区
SMALL_RECT rc = { 1,1, static_cast<SHORT>(width), static_cast<SHORT>(high) };
SetConsoleWindowInfo(hscreen, true, &rc);//修改窗口大小 注意:窗口大小不能超过缓冲区大小,不然修改会失败!
system("cls");
return;
}

//用bind函数把hScreen参数绑定之后在后面操作双缓冲区的时候就可以轻松许多
//用法:printfSXY_A( 要输出的string , X坐标 , Y坐标 )
void printfSXY(string content, SHORT x, SHORT y, HANDLE hscreen) {
//我搞了一个下午都没有搞清楚双缓冲怎么改输出颜色,fxxk,
//一般情况下用SetConsoleTextAttribute就可以改输出颜色了,但是这个双缓冲fxxk是真蛋疼

    COORD coord = { x,y };
WriteConsoleOutputCharacterA(hscreen, content.c_str(), content.size(), coord, NULL);
}
auto printfSXY_A = bind(&printfSXY, placeholders::_1, placeholders::_2, placeholders::_3, hScreenA);//向缓冲区A输入,用API实现
auto printfSXY_B = bind(&printfSXY, placeholders::_1, placeholders::_2, placeholders::_3, hScreenB);//向缓冲区B输入,用API实现
void setScreen(HANDLE hscreen) {
SetConsoleActiveScreenBuffer(hscreen);
}

void consolePrintf(string content, int x, int y, int color) {//普通输出函数,用goto实现
COORD pos = { static_cast<short>(x),static_cast<short>(y) };
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);// 获取标准输出设备句柄
SetConsoleCursorPosition(hOut, pos);//两个参数分别是指定哪个窗体,具体位置

    SetConsoleTextAttribute(hOut, color);
cout << content << endl;
SetConsoleTextAttribute(hOut, 7);
}

//这个类作为游戏与用户数据和菜单数据的接口
struct gameIniSet {
struct player {
//个人数据
bool m_ifOnline;
string m_playerName;
int m_preMaxScore;
int m_money;

        //游戏数据
string m_race;//human or robot
string m_headSymbol;
string m_bodySymbol;
int m_snakeLongth;
string m_direction;
int m_snakeSpeed;
};
struct otherSet {
int m_gameTimeLeft;//游戏倒计时
int m_foodsCoinsides;
int m_totalSpeed;
string m_language;
};
player user1;
player user2;
player user3;
otherSet otherSet;
};

//kitfunctions,顾名思义,就是函数工具箱的意思,里面用来装常用的函数
//我一般都是把这个kitfunction放头文件里的,但是这里为了省去多传文件的麻烦,就把它放这了
class kitFunctions {
private:
static int getLocalTime_year();
static int getLocalTime_month();
static int getLocalTime_day();
static int getLocalTime_hour();
static int getLocalTime_min();
static int getLocalTime_sec();
public:
//加上static全局可调用
static string get_hourMinSec_string();
static string get_yearMonthDay_string();
};
int kitFunctions::getLocalTime_year()
{
time_t timep;
time(&timep);
struct tm* time_pointer = localtime(&timep);
return 1900 + time_pointer->tm_year;
}
int kitFunctions::getLocalTime_month()
{
time_t timep;
time(&timep);
struct tm* time_pointer = localtime(&timep);
return 1 + time_pointer->tm_mon;
}
int kitFunctions::getLocalTime_day()
{
time_t timep;
time(&timep);
struct tm* time_pointer = localtime(&timep);
return time_pointer->tm_mday;
}
int kitFunctions::getLocalTime_hour()
{
time_t timep;
time(&timep);
struct tm* time_pointer = localtime(&timep);
return time_pointer->tm_hour;
}
int kitFunctions::getLocalTime_min()
{
time_t timep;
time(&timep);
struct tm* time_pointer = localtime(&timep);
return time_pointer->tm_min;
}
int kitFunctions::getLocalTime_sec()
{
time_t timep;
time(&timep);
struct tm* time_pointer = localtime(&timep);
return time_pointer->tm_sec;
}
string kitFunctions::get_yearMonthDay_string()
{
string year, month, day;
year = to_string(getLocalTime_year());
month = to_string(getLocalTime_month());
day = to_string(getLocalTime_day());
string temp = "0";
if (month.size() < 2)month.insert(0, temp);
if (day.size() < 2)day.insert(0, temp);
string MixedTime = year + month + day;
return MixedTime;
}
string kitFunctions::get_hourMinSec_string()
{
string hour, min, sec;
hour = to_string(getLocalTime_hour());
min = to_string(getLocalTime_min());
sec = to_string(getLocalTime_sec());
string temp = "0";
if (hour.size() < 2)hour.insert(0, temp);
if (min.size() < 2)min.insert(0, temp);
if (sec.size() < 2)sec.insert(0, temp);
string MixedTime = hour + ":" + min + ":" + sec;
return MixedTime;
}

class snakeGame
{
private:
//其实这个atomic操作完全没有必要,相对于这些偏门的函数,mutex更为简单,,但是为了装逼,我选择用它
atomic<bool> m_ifCloseSubtitleLock;
atomic<bool> m_ifOkForShowRanking;
atomic<bool> m_ifSkipAfterGameScoreCounting;
atomic<bool> m_ifShowedAfterGameScoreCounting;
mutex m_subtitleLock;
mutex m_foodsLock;
mutex m_playersLock;
mutex m_gameOverLock;

    bool m_ifCloseSubtitle;
bool m_ifShowedLastSurvivalOneInfo;
int m_totalSpeed;
string m_nowLocalTime;
int m_gameTimePast;
int m_gameTimeLeft;//游戏倒计时
pair<bool, gameOverWay> m_gameOver;//作为多个线程结束的信号

    class gamePlayer {
public:
class snake {
public:
struct snakeBit {
string m_symbol;
int m_x;
int m_y;
snakeBit() {}
snakeBit(string symbol, int x, int y) :m_symbol(symbol), m_x(x), m_y(y) {}
};
//pair<>只能带俩参数,,,tuple可以带多个参数
tuple<ifDied, ifShowed, diedWay> m_died;//(ifDied:是否死亡,ifShowed:是否已在屏幕上显示过死亡信息,diedway:死亡方式,)
deque<snakeBit> m_snakeDeque;
direction m_direction;

int m_snakeSpeed;//用来控制速度,分
int m_speedSum;//又是双缓冲又是多线程又要做这个速度模块只能用这种很猥琐的方法了.
bool m_moving;//用来搞不同的蛇不同速度的功能
bool m_ifOkForsnakeMoving;//防止因按键过快导致的 hit himself 问题

            int m_snakeLongth;
int m_snakeGrowthValue;
string m_headSymbol;
string m_bodySymbol;
bool operator> (snake anotherSnake) {
if (this->m_snakeLongth > anotherSnake.m_snakeLongth)return true;
else return false;
}
snake(){}
};
bool m_ifOnline;
string m_race;
snake m_snake;

        string m_playerName;
int m_preMaxScoreOfSnake;
int m_nowScore;
int m_money;

gamePlayer() {}
};
vector<gamePlayer> gamePlayers;

    struct food {
int m_x;
int m_y;

        string m_foodType;
string m_symbol;
int m_growValue;
int m_scoreAdding;
int m_moneyAdding;
string m_feature;

        food() {}
food(int x, int y) :m_x(x), m_y(y) {}
};
list<unique_ptr<food>> m_foods;
food smallFood;
food middleFood;
food moneyFood;
food treasureFood;
food squareFood;
food circleFood;
food pentacleFood;//pentacle:五角星
int m_foodCoinsides;
int m_theWattingAfterAllFoodsIsEatten;//这只是一个用来计数的
int m_speakingCounting;//这也是一个用来计数的
bool m_ifSaidTheLastSentence;//这也是一个用来计数的
int m_endUpDrawCounting;//这也是一个用来计数的
bool m_ifEndUpDraw;//这也是一个用来计数的

    struct growthValueBlock {
string m_symbol;
int m_x;
int m_y;
growthValueBlock(string symbol, int x, int y) :m_symbol(symbol), m_x(x), m_y(y) {}
};
using myGVB = growthValueBlock;
vector<myGVB> m_userA_GUB_vector;
deque<string> m_lowerLeftConnerInfos;
int m_centerScreenInfo;//用来表示屏幕中间的信息显示位置 velue

    //fxxk!!!!右上角玩家姓名下面的PMScore是PreMaxScore的意思,但是因为这段字符串太tm长了
//,如果让它显示出来就爆出控制台了,所以我只好加上了字幕功能, 真是太操蛋了, ╮(╯▽╰)╭
struct subtitle {
string m_content;
string m_sentence;//sentenc才是真正show出来的内容
int m_y;//在第几行显示
int m_x;//在第几列开始显示,默认为 playScreenWidth - 4
//secondsAfterBegin这个功能还没做出来20200703,因为做出来了意义也不大。。。。
int m_secondsAfterBegin;
//下面的 m_startPos,m_strLongth,m_strSize都只是一些操蛋的计算参数
//,除非你是无聊到爆炸的数学做题家,否则我还是建议你不要管这个subtitle怎么实现的
//如果有想加的subtitle直接去iniAttributes()里面设置就行了,
int m_startPos;
int m_strLongth;
int m_strSize;
bool m_haveShowed;

        subtitle(string content, int y, int secondsAfterBegin) {//传入的content必须要注意“ 2 格一个字” 这个原则
m_content = content;
m_y = y;
m_secondsAfterBegin = secondsAfterBegin;
//下面这些默认值自然有它的道理,都是我慢慢调的,,深究真没什么意义
m_x = playScreenWidth - 4;
m_startPos = 0;
m_strLongth = 2;
m_strSize = content.size();
m_haveShowed = false;
}
};
vector<subtitle> m_subtitles;
vector<pair<int,string>> m_ranking;//屏幕上面的实时排名

    struct coordinate {
int m_x;
int m_y;
};
vector<tuple<int,int, string, int>>m_RTInfos;//(int x,int y,string massage,int showedtimes)
map<int,string>m_theLastLivingRobotIsGoingToSay;//以逗号为单位"ohhhhh,only me???,oh,I BEGGING you,  DO NOT close the window,you know...
bool m_ifOkToSayTheLastLivingRobotIsGoingToSay;    //,since i'm merely just , a process ,....,and all my life span is , the time when the , program is ranning
bool m_ifSaidTheLastLivingRobotIsGoingToSay;    //,I just want to live longer...,......,"

    struct rankingData {
string m_champion;
string m_rannerUp;
string m_secondRannerUp;
};
rankingData m_rankingData;
public:
snakeGame(gameIniSet & gameIniset);
void moduleShow();
void moduleControl();
void afterGameScoreCounting();//结束游戏后的游戏计分
void press_TAB_to_skip();

    void iniAttributes(const gameIniSet& gameIniset);
void iniSystem();
void iniMap(string whichScreen);
void iniSnakes();

    void clearScreen(string whichScreen);//像这种whichScreen就用不着加&了
void showFoods(string whichScreen);
void showSnakes(string whichScreen);
void showScore(string whichScreen);
void showTimePast(string whichScreen);
void showSubtitle(string whichScreen);
void showRanking(string whichScreen);
void showDeadInfo();
void showLowerLeftConnerInfo(string massage);
void addRTInfo(gamePlayer::snake& snake, string& massage);
void showRTInfo(string whichScreen);//show real time information 实时信息显示
void showGameOver(gameOverWay gameOverWay);//包括所有食物被吃完后的成功

    void foodsCreating();
void robotMovingJudge();
void snakeMoving();
void subtitleThread();//因为字幕是延迟显示的,不与主线程同步,所以这里再开一条线程
void RankingThread();
void afterMovingJudge();
void user1StrockJudge();
void user2StrockJudge();
void user3StrockJudge();
};
void snakeGame::iniAttributes(const gameIniSet& gameIniset) {
//foods
smallFood.m_foodType = "smallFood";
smallFood.m_symbol = "o";//horizontal size:1;
smallFood.m_growValue = 10;
smallFood.m_scoreAdding = 10;
smallFood.m_moneyAdding = 0;

    middleFood.m_foodType = "middleFood";
middleFood.m_symbol = "O";//horizontal size:1;
middleFood.m_growValue = 20;
middleFood.m_scoreAdding = 20;
middleFood.m_moneyAdding = 0;

    moneyFood.m_foodType = "moneyFood";
moneyFood.m_symbol = "#";//horizontal size:1;
moneyFood.m_growValue = 0;
moneyFood.m_scoreAdding = 0;
moneyFood.m_moneyAdding = 10;

    treasureFood.m_foodType = "treasureFood";
treasureFood.m_symbol = "$";//horizontal size:2;
treasureFood.m_growValue = 1;
treasureFood.m_scoreAdding = 0;
treasureFood.m_moneyAdding = 20;

    squareFood.m_foodType = "squareFood";
squareFood.m_symbol = "■";//horizontal size:2;
squareFood.m_growValue = 0;
squareFood.m_scoreAdding = 50;
squareFood.m_moneyAdding = 0;

    circleFood.m_foodType = "circleFood";
circleFood.m_symbol = "●";//horizontal size:2;
circleFood.m_growValue = 0;
circleFood.m_scoreAdding = 50;
circleFood.m_moneyAdding = 0;

    pentacleFood.m_foodType = "pentacleFood";
pentacleFood.m_symbol = "★";//horizontal size:2;
pentacleFood.m_growValue = 0;
pentacleFood.m_scoreAdding = 50;
pentacleFood.m_moneyAdding = 0;
//snake
gamePlayer player1;
gamePlayer player2;
gamePlayer player3;

    //关于这个get<>是用于读取tuple类型的列表的,和pair类似。
get<0>(player1.m_snake.m_died) = false;
get<1>(player1.m_snake.m_died) = false;
player1.m_ifOnline = gameIniset.user1.m_ifOnline;
player1.m_race = gameIniset.user1.m_race;
player1.m_snake.m_headSymbol = gameIniset.user1.m_headSymbol;//the size of symbol must be 2 bytes
player1.m_snake.m_bodySymbol = gameIniset.user1.m_bodySymbol;
player1.m_snake.m_snakeLongth = gameIniset.user1.m_snakeLongth;
player1.m_snake.m_direction = gameIniset.user1.m_direction;
player1.m_playerName = gameIniset.user1.m_playerName;
player1.m_preMaxScoreOfSnake = gameIniset.user1.m_preMaxScore;
player1.m_money = gameIniset.user1.m_money;
player1.m_snake.m_snakeSpeed = gameIniset.user1.m_snakeSpeed;
player1.m_nowScore = 0;
player1.m_snake.m_moving = false;
player1.m_snake.m_ifOkForsnakeMoving = true;
player1.m_snake.m_speedSum = 0;

    get<0>(player2.m_snake.m_died) = false;
get<1>(player2.m_snake.m_died) = false;
player2.m_ifOnline = gameIniset.user2.m_ifOnline;
player2.m_race = gameIniset.user2.m_race;
player2.m_snake.m_headSymbol = gameIniset.user2.m_headSymbol;//the size of symbol must be 2 bytes
player2.m_snake.m_bodySymbol = gameIniset.user2.m_bodySymbol;
player2.m_snake.m_snakeLongth = gameIniset.user2.m_snakeLongth;
player2.m_snake.m_direction = gameIniset.user2.m_direction;
player2.m_playerName = gameIniset.user2.m_playerName;
player2.m_preMaxScoreOfSnake = gameIniset.user2.m_preMaxScore;
player2.m_money = gameIniset.user2.m_money;
player2.m_snake.m_snakeSpeed = gameIniset.user2.m_snakeSpeed;
player2.m_nowScore = 0;
player2.m_snake.m_moving = false;
player2.m_snake.m_ifOkForsnakeMoving = true;
player2.m_snake.m_speedSum = 0;

    get<0>(player2.m_snake.m_died) = false;
get<1>(player2.m_snake.m_died) = false;
player3.m_ifOnline = gameIniset.user3.m_ifOnline;
player3.m_race = gameIniset.user3.m_race;
player3.m_snake.m_headSymbol = gameIniset.user3.m_headSymbol;//the size of symbol must be 2 bytes
player3.m_snake.m_bodySymbol = gameIniset.user3.m_bodySymbol;
player3.m_snake.m_snakeLongth = gameIniset.user3.m_snakeLongth;
player3.m_snake.m_direction = gameIniset.user3.m_direction;
player3.m_playerName = gameIniset.user3.m_playerName;
player3.m_preMaxScoreOfSnake = gameIniset.user3.m_preMaxScore;
player3.m_money = gameIniset.user3.m_money;
player3.m_snake.m_snakeSpeed = gameIniset.user3.m_snakeSpeed;
player3.m_nowScore = 0;
player3.m_snake.m_moving = false;
player3.m_snake.m_ifOkForsnakeMoving = true;
player3.m_snake.m_speedSum = 0;

    gamePlayers.emplace_back(player1);
gamePlayers.emplace_back(player2);
gamePlayers.emplace_back(player3);
//这种写法也可以
//gamePlayers.push_back(move(player1));
//gamePlayers.push_back(move(player2));
//gamePlayers.push_back(move(player3));

    //subtitle
//可以在这里加预先的字幕
string explainA1 = "同志们好↖(^ω^)↗,这段废话,没错,就是你现在看到的这段废话,,,额,我是想解释一下,这个";//这段话有点长,必须分开写
string explainA2 = ",,右上角在玩家姓名下面的 “PMScore” 其实是 ‘PreMaxScore’ 的意思,,,,";
string explainA3 = ",,,哎,没办法≡(▔﹏▔)≡,因为 PreMaxScore 这个字符串 ♂ 太长了, ";
string explainA4 = "如果让它显示出来就爆出控制台了,所以我只好加上了这句说明。。。。";
string explainA5 = "我的QQ号是  1668568309  ,,,我很期待大家加我呢o(≥ω≤)o !!!";
string myExplainA = explainA1 + explainA2 + explainA3 + explainA4 + explainA5;

    string myExplainB = "(你可以按' tab ' 键立刻终止这段话的显示)";

    subtitle subtitle1(myExplainA, playScreenHigh - 1,5);//(string content,int y ,int secondsAfterBegin)
subtitle subtitle2(myExplainB, playScreenHigh - 2,6);

    m_subtitles.emplace_back(subtitle1);
m_subtitles.emplace_back(subtitle2);

    //otherSetting
m_gameTimeLeft = gameIniset.otherSet.m_gameTimeLeft;//游戏倒计时

    //其他
m_ifCloseSubtitle = false;
m_ifOkForShowRanking = true;
m_ifShowedLastSurvivalOneInfo = false;
m_theWattingAfterAllFoodsIsEatten = 0;
m_speakingCounting = 0;
m_ifSaidTheLastSentence = false;
m_endUpDrawCounting = 0;
m_ifEndUpDraw = false;
m_ifOkToSayTheLastLivingRobotIsGoingToSay = false;
m_ifSaidTheLastLivingRobotIsGoingToSay = false;
m_ifSkipAfterGameScoreCounting = false;
m_ifShowedAfterGameScoreCounting = false;

    m_theLastLivingRobotIsGoingToSay.emplace(pair<int, string>(1, "ohhhhh"));
m_theLastLivingRobotIsGoingToSay.emplace(pair<int, string>(2, "only me???"));
m_theLastLivingRobotIsGoingToSay.emplace(pair<int, string>(3, "oh"));
m_theLastLivingRobotIsGoingToSay.emplace(pair<int, string>(4, "I BEGGING you"));
m_theLastLivingRobotIsGoingToSay.emplace(pair<int, string>(5, "DO NOT close the window"));
m_theLastLivingRobotIsGoingToSay.emplace(pair<int, string>(6, "you know..."));
m_theLastLivingRobotIsGoingToSay.emplace(pair<int, string>(7, "since i'm merely just "));
m_theLastLivingRobotIsGoingToSay.emplace(pair<int, string>(8, " a process"));
m_theLastLivingRobotIsGoingToSay.emplace(pair<int, string>(9, "...."));
m_theLastLivingRobotIsGoingToSay.emplace(pair<int, string>(10, "and all my life span is "));
m_theLastLivingRobotIsGoingToSay.emplace(pair<int, string>(11, "the time when the "));
m_theLastLivingRobotIsGoingToSay.emplace(pair<int, string>(12, "program's ranning"));
m_theLastLivingRobotIsGoingToSay.emplace(pair<int, string>(13, "I just want to live longer..."));
m_theLastLivingRobotIsGoingToSay.emplace(pair<int, string>(14, "......"));

for (int i = 0, j = 4; i < 6; ++i, j += 2) {//预先装好右下角成长值的符号
m_userA_GUB_vector.emplace_back("■", playScreenWidth + j, playScreenHigh - 7);
}
}
void snakeGame::iniSystem() {
//随机种子
srand(static_cast<unsigned int>(time(NULL)));

    //设置两个缓冲区的屏幕大小
setHScreenSize(hScreenA, mapWidth, mapHigh);
setHScreenSize(hScreenB, mapWidth, mapHigh);

    ////隐藏两个缓冲区的光标
CONSOLE_CURSOR_INFO cci;
cci.bVisible = 0;
cci.dwSize = 1;
SetConsoleCursorInfo(hScreenA, &cci);
SetConsoleCursorInfo(hScreenB, &cci);
}
void snakeGame::iniMap(string whichScreen) {
//贪吃蛇游戏边框
//本来这段代码挺好读的,但自从加了左下角信息框的功能之后,,,就变得特操蛋
for (int i = 4; i < playScreenWidth - 2; i += 2) {//top of the map
if (whichScreen == "A")printfSXY_A("▁", i, 2);
if (whichScreen == "B")printfSXY_B("▁", i, 2);
}
for (int j = 3; j < InfoCornerHigh; ++j) {//left column
if (whichScreen == "A")printfSXY_A("▕", 2, j);
if (whichScreen == "B")printfSXY_B("▕", 2, j);
}
for (int j = 3; j < playScreenHigh; ++j) {//right column
if (whichScreen == "A")printfSXY_A("▏", playScreenWidth - 2, j);
if (whichScreen == "B")printfSXY_B("▏", playScreenWidth - 2, j);
}
for (int i = InfoCornerWidth + 2; i < playScreenWidth - 2; i += 2) {//bottom of the map
if (whichScreen == "A")printfSXY_A("▔", i, playScreenHigh);
if (whichScreen == "B")printfSXY_B("▔", i, playScreenHigh);
}
//左下角信息框
for (int i = 4; i < InfoCornerWidth; i += 2) {//up of the LowerLeftConner
if (whichScreen == "A")printfSXY_A("▔", i, InfoCornerHigh);
if (whichScreen == "B")printfSXY_B("▔", i, InfoCornerHigh);
}
for (int j = InfoCornerHigh; j < playScreenHigh; ++j) {//right of the LowerLeftConner
if (whichScreen == "A")printfSXY_A("▕", InfoCornerWidth, j);
if (whichScreen == "B")printfSXY_B("▕", InfoCornerWidth, j);
}
if (whichScreen == "A")printfSXY_A("█", InfoCornerWidth, InfoCornerHigh);//upper right of the LowerLeftConner
if (whichScreen == "B")printfSXY_B("█", InfoCornerWidth, InfoCornerHigh);

    //计分板边框
for (int j = 3; j < playScreenHigh; ++j) {
if (whichScreen == "A")printfSXY_A("|", playScreenWidth + 1, j);
if (whichScreen == "B")printfSXY_B("|", playScreenWidth + 1, j);
}
for (int j = 3; j < playScreenHigh; ++j) {
if (whichScreen == "A")printfSXY_A("|", mapWidth - 2, j);
if (whichScreen == "B")printfSXY_B("|", mapWidth - 2, j);
}
for (int i = playScreenWidth + 2; i < mapWidth - 2; i += 2) {
if (whichScreen == "A")printfSXY_A("▂", i, 2);
if (whichScreen == "B")printfSXY_B("▂", i, 2);
}
for (int i = playScreenWidth + 2; i < mapWidth - 2; i += 2) {
if (whichScreen == "A")printfSXY_A("═", i, playScreenHigh - 16);
if (whichScreen == "B")printfSXY_B("═", i, playScreenHigh - 16);
}
for (int i = playScreenWidth + 2; i < mapWidth - 2; i += 2) {
if (whichScreen == "A")printfSXY_A("﹊", i, playScreenHigh);
if (whichScreen == "B")printfSXY_B("﹊", i, playScreenHigh);
}
//显示计分板不变的内容(最上面的SCORE COUNTS 和玩家姓名)
string scoreBroad = "SCORE COUNTS";
if (whichScreen == "A")printfSXY_A(scoreBroad, playScreenWidth + 4, 2);
if (whichScreen == "B")printfSXY_B(scoreBroad, playScreenWidth + 4, 2);

    int y = 3;//player名字的y轴坐标
for (auto& player : gamePlayers) {
if (player.m_ifOnline == true) {
string playerName = player.m_playerName;
if (whichScreen == "A")printfSXY_A(playerName, playScreenWidth + 6, y);
if (whichScreen == "B")printfSXY_B(playerName, playScreenWidth + 6, y);
//fxxk
string preMaxScore = "  PMScore: " + to_string(player.m_preMaxScoreOfSnake);
if (whichScreen == "A")printfSXY_A(preMaxScore, playScreenWidth + 2, y + 1);
if (whichScreen == "B")printfSXY_B(preMaxScore, playScreenWidth + 2, y + 1);
}
y += 7;//players的名字之间要隔这么几行来写信息
}

    //右下角成长值边框(共三个)
//我懒得用算法优化。。。这样可以多水几十行代码(逃... 
//主要是因为这么散着写开了之后确实更方便阅读(如果用for写的话那就太操蛋了)
if (gamePlayers[0].m_ifOnline == true) {
int x = playScreenWidth + ((mapWidth - playScreenWidth) / 2 - gamePlayers[2].m_playerName.size() / 2);
if (whichScreen == "A")printfSXY_A(gamePlayers[0].m_playerName, x, playScreenHigh - 15);
if (whichScreen == "B")printfSXY_B(gamePlayers[0].m_playerName, x, playScreenHigh - 15);
}
for (int i = playScreenWidth + 4; i < mapWidth - 4; i += 2) {
if (whichScreen == "A")printfSXY_A("▁", i, playScreenHigh - 13);
if (whichScreen == "B")printfSXY_B("▁", i, playScreenHigh - 13);
}
for (int i = playScreenWidth + 4; i < mapWidth - 4; i += 2) {
if (whichScreen == "A")printfSXY_A("▔", i, playScreenHigh - 11);
if (whichScreen == "B")printfSXY_B("▔", i, playScreenHigh - 11);
}
if (whichScreen == "A")printfSXY_A("▕", playScreenWidth + 2, playScreenHigh - 12);
if (whichScreen == "B")printfSXY_B("▕", playScreenWidth + 2, playScreenHigh - 12);
if (whichScreen == "A")printfSXY_A("▏", mapWidth - 4, playScreenHigh - 12);
if (whichScreen == "B")printfSXY_B("▏", mapWidth - 4, playScreenHigh - 12);

    if (gamePlayers[1].m_ifOnline == true) {
int x = playScreenWidth + ((mapWidth - playScreenWidth) / 2 - gamePlayers[2].m_playerName.size() / 2);
if (whichScreen == "A")printfSXY_A(gamePlayers[1].m_playerName, x, playScreenHigh - 10);
if (whichScreen == "B")printfSXY_B(gamePlayers[1].m_playerName, x, playScreenHigh - 10);
}
for (int i = playScreenWidth + 4; i < mapWidth - 4; i += 2) {
if (whichScreen == "A")printfSXY_A("▁", i, playScreenHigh - 8);
if (whichScreen == "B")printfSXY_B("▁", i, playScreenHigh - 8);
}
for (int i = playScreenWidth + 4; i < mapWidth - 4; i += 2) {
if (whichScreen == "A")printfSXY_A("▔", i, playScreenHigh - 6);
if (whichScreen == "B")printfSXY_B("▔", i, playScreenHigh - 6);
}
if (whichScreen == "A")printfSXY_A("▕", playScreenWidth + 2, playScreenHigh - 7);
if (whichScreen == "B")printfSXY_B("▕", playScreenWidth + 2, playScreenHigh - 7);
if (whichScreen == "A")printfSXY_A("▏", mapWidth - 4, playScreenHigh - 7);
if (whichScreen == "B")printfSXY_B("▏", mapWidth - 4, playScreenHigh - 7);

    if (gamePlayers[2].m_ifOnline == true) {
int x = playScreenWidth + ((mapWidth - playScreenWidth) / 2 - gamePlayers[2].m_playerName.size() / 2);
if (whichScreen == "A")printfSXY_A(gamePlayers[2].m_playerName, x, playScreenHigh - 5);
if (whichScreen == "B")printfSXY_B(gamePlayers[2].m_playerName, x, playScreenHigh - 5);
}
for (int i = playScreenWidth + 4; i < mapWidth - 4; i += 2) {
if (whichScreen == "A")printfSXY_A("▁", i, playScreenHigh - 3);
if (whichScreen == "B")printfSXY_B("▁", i, playScreenHigh - 3);
}
for (int i = playScreenWidth + 4; i < mapWidth - 4; i += 2) {
if (whichScreen == "A")printfSXY_A("▔", i, playScreenHigh - 1);
if (whichScreen == "B")printfSXY_B("▔", i, playScreenHigh - 1);
}
if (whichScreen == "A")printfSXY_A("▕", playScreenWidth + 2, playScreenHigh - 2);
if (whichScreen == "B")printfSXY_B("▕", playScreenWidth + 2, playScreenHigh - 2);
if (whichScreen == "A")printfSXY_A("▏", mapWidth - 4, playScreenHigh - 2);
if (whichScreen == "B")printfSXY_B("▏", mapWidth - 4, playScreenHigh - 2);

}
void snakeGame::iniSnakes() {
//player1's snake is located at 30 for x(when playScreenWidth is 120)
if (gamePlayers[0].m_ifOnline == true) {
gamePlayers[0].m_snake.m_snakeDeque.emplace_front(gamePlayers[0].m_snake.m_headSymbol, playScreenWidth / 4, playScreenHigh / 2);
for (int i = 0; i < gamePlayers[0].m_snake.m_snakeLongth; ++i) {
gamePlayers[0].m_snake.m_snakeDeque.emplace_back(gamePlayers[0].m_snake.m_bodySymbol, playScreenWidth / 4, playScreenHigh / 2);
}
}
//player2's snake is located at 30 for x(when playScreenWidth is 120)
if (gamePlayers[1].m_ifOnline == true) {
gamePlayers[1].m_snake.m_snakeDeque.emplace_front(gamePlayers[1].m_snake.m_headSymbol, playScreenWidth / 2, playScreenHigh / 2);
for (int i = 0; i < gamePlayers[1].m_snake.m_snakeLongth; ++i) {
gamePlayers[1].m_snake.m_snakeDeque.emplace_back(gamePlayers[1].m_snake.m_bodySymbol, playScreenWidth / 2, playScreenHigh / 2);
}
}
//player3's snake is located at 30 for x(when playScreenWidth is 120)
if (gamePlayers[2].m_ifOnline == true) {
gamePlayers[2].m_snake.m_snakeDeque.emplace_front(gamePlayers[2].m_snake.m_headSymbol, playScreenWidth - playScreenWidth / 4, playScreenHigh / 2);
for (int i = 0; i < gamePlayers[2].m_snake.m_snakeLongth; ++i) {
gamePlayers[2].m_snake.m_snakeDeque.emplace_back(gamePlayers[2].m_snake.m_bodySymbol, playScreenWidth - playScreenWidth / 4, playScreenHigh / 2);
}
}
}
void snakeGame::clearScreen(string whichScreen){
//主屏幕清屏函数,因使用system("cls");再打印框架有一定几率造成框架上移一行的错误,所以单独编写清屏函数
//清屏的时候要小心不能清到左下角的信息框
string voidScreenLineA(playScreenWidth - 6, ' ');
string voidScreenLineB(playScreenWidth - 6 - (InfoCornerWidth - 2), ' ');
for (int i = 3; i < InfoCornerHigh; i++)
{
if (whichScreen == "A")printfSXY_A(voidScreenLineA, 4, i);
if (whichScreen == "B")printfSXY_B(voidScreenLineA, 4, i);
}
for (int i = InfoCornerHigh; i < playScreenHigh; i++)
{
if (whichScreen == "A")printfSXY_A(voidScreenLineB, InfoCornerWidth + 2, i);
if (whichScreen == "B")printfSXY_B(voidScreenLineB, InfoCornerWidth + 2, i);
}

    //clean gorwthBlocks at the lower right corner
string voidScreenLine(12, ' ');
if (whichScreen == "A")printfSXY_A(voidScreenLine, playScreenWidth + 4, playScreenHigh - 2);
if (whichScreen == "B")printfSXY_B(voidScreenLine, playScreenWidth + 4, playScreenHigh - 2);
if (whichScreen == "A")printfSXY_A(voidScreenLine, playScreenWidth + 4, playScreenHigh - 4);
if (whichScreen == "B")printfSXY_B(voidScreenLine, playScreenWidth + 4, playScreenHigh - 4);
if (whichScreen == "A")printfSXY_A(voidScreenLine, playScreenWidth + 4, playScreenHigh - 7);
if (whichScreen == "B")printfSXY_B(voidScreenLine, playScreenWidth + 4, playScreenHigh - 7);
if (whichScreen == "A")printfSXY_A(voidScreenLine, playScreenWidth + 4, playScreenHigh - 9);
if (whichScreen == "B")printfSXY_B(voidScreenLine, playScreenWidth + 4, playScreenHigh - 9);
if (whichScreen == "A")printfSXY_A(voidScreenLine, playScreenWidth + 4, playScreenHigh - 12);
if (whichScreen == "B")printfSXY_B(voidScreenLine, playScreenWidth + 4, playScreenHigh - 12);
if (whichScreen == "A")printfSXY_A(voidScreenLine, playScreenWidth + 4, playScreenHigh - 14);
if (whichScreen == "B")printfSXY_B(voidScreenLine, playScreenWidth + 4, playScreenHigh - 14);

    //清理左上角的游戏时间
if (whichScreen == "A")printfSXY_A(voidScreenLine, 3, 1);
if (whichScreen == "B")printfSXY_B(voidScreenLine, 3, 1);
}
void snakeGame::showFoods(string whichScreen) {
lock_guard<mutex> foodsLock(m_foodsLock);
if (m_foods.empty())return;
for (auto& food : m_foods) {
if (whichScreen == "A")printfSXY_A(food->m_symbol, food->m_x, food->m_y);
if (whichScreen == "B")printfSXY_B(food->m_symbol, food->m_x, food->m_y);
}
}
void snakeGame::showSnakes(string whichScreen) {
lock_guard<mutex> playersLock(m_playersLock);
for (auto & player : gamePlayers) {
if (player.m_ifOnline == false) {
continue;
}
for (auto & snakebit : player.m_snake.m_snakeDeque) {
if (whichScreen == "A") printfSXY_A(snakebit.m_symbol, snakebit.m_x, snakebit.m_y);
if (whichScreen == "B") printfSXY_B(snakebit.m_symbol, snakebit.m_x, snakebit.m_y);
}
}
}
void snakeGame::showScore(string whichScreen) {
int y = 3;//player名字的y轴坐标
lock_guard<mutex> playersLock(m_playersLock);
for (auto& player : gamePlayers) {
if (player.m_ifOnline == false) continue;
string nowScore = "NowScore: " + to_string(player.m_nowScore);
if (whichScreen == "A")printfSXY_A(nowScore, playScreenWidth + 4, y + 2);
if (whichScreen == "B")printfSXY_B(nowScore, playScreenWidth + 4, y + 2);
string money = "Money: " + to_string(player.m_money);
if (whichScreen == "A")printfSXY_A(money, playScreenWidth + 4, y + 3);
if (whichScreen == "B")printfSXY_B(money, playScreenWidth + 4, y + 3);
string longth = "Longth: " + to_string(player.m_snake.m_snakeLongth);
if (whichScreen == "A")printfSXY_A(longth, playScreenWidth + 4, y + 4);
if (whichScreen == "B")printfSXY_B(longth, playScreenWidth + 4, y + 4);
y += 7;
}

    //右下角成长值的实现
y = playScreenHigh - 12;//最上面的成长值
for (auto& player : gamePlayers) {
if (player.m_ifOnline == false ) continue;
string growthValueA = to_string(player.m_snake.m_snakeGrowthValue) + "/100";
if (whichScreen == "A")printfSXY_A(growthValueA, playScreenWidth + 7, y-2);
if (whichScreen == "B")printfSXY_B(growthValueA, playScreenWidth + 7, y-2);

        //这些计算方式真的很操蛋,你真的读不懂的,这些计算的东西都是慢慢调试出来的,不是读出来的
//,Jamie Zawinski 说过,遇到这种恶心的代码时因该做的事不是重读,而是自己再实现一次这种功能
//when you inherit code from someone else ,sometimes it's faster to write
//your own than to reuse theirs.
int nomber = player.m_snake.m_snakeGrowthValue;
if (player.m_snake.m_snakeGrowthValue >= 98) {
nomber = 97;//因为98/14==7,但是m_userA_GUB_vector只有6个数据,你看,我就说很操蛋吧
}
int gorwthBlock_nom = nomber / 14;
int i = 0;
auto itBegin = m_userA_GUB_vector.begin();
while (i < gorwthBlock_nom) {
if (whichScreen == "A")printfSXY_A(itBegin->m_symbol, itBegin->m_x, y);
if (whichScreen == "B")printfSXY_B(itBegin->m_symbol, itBegin->m_x, y);
++i;
++itBegin;
}
y += 5;
}
}
void snakeGame::showTimePast(string whichScreen) {
int timeLeft = m_gameTimeLeft - m_gameTimePast;
if (timeLeft < 1) {
m_gameOver.first = true;
m_gameOver.second = "time run out";
showLowerLeftConnerInfo("time's running out");
}
int minites = timeLeft / 60;
int seconds = timeLeft % 60;
string minites_str = to_string(minites);
string seconds_str = to_string(seconds);

    string temp = "0";
if (minites_str.size() == 1) {
minites_str.insert(0, temp);
}
if (seconds_str.size() == 1) {
seconds_str.insert(0, temp);

http://www.imdb.com/list/ls085109607/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109656/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109673/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109672/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109667/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109621/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109643/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109690/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109207/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109208/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109277/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109274/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109235/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109233/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109261/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109268/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109229/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109248/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109299/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109286/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109402/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109450/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109472/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109474/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109419/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109432/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109427/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109424/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109448/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109495/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109487/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109907/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109950/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109952/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109978/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109916/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109960/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109927/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109946/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085109836/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108059/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108072/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108012/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108030/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108060/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108063/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108029/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108049/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108080/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108081/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108504/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108508/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108559/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108573/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108515/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108513/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108530/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108536/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108568/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108523/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108543/?mode=desktop&ref_=m_ft_dsk
http://www.imdb.com/list/ls085108597/?mode=desktop&ref_=m_ft_dsk

http://www.imdb.com/list/ls085150110/?mode=desktop
http://www.imdb.com/list/ls085150112/?mode=desktop
http://www.imdb.com/list/ls085150133/?mode=desktop
http://www.imdb.com/list/ls085150166/?mode=desktop
http://www.imdb.com/list/ls085150128/?mode=desktop
http://www.imdb.com/list/ls085150149/?mode=desktop
http://www.imdb.com/list/ls085150185/?mode=desktop
http://www.imdb.com/list/ls085150182/?mode=desktop
http://www.imdb.com/list/ls085150302/?mode=desktop
http://www.imdb.com/list/ls085150354/?mode=desktop
http://www.imdb.com/list/ls085150379/?mode=desktop
http://www.imdb.com/list/ls085150330/?mode=desktop
http://www.imdb.com/list/ls085150367/?mode=desktop
http://www.imdb.com/list/ls085150369/?mode=desktop
http://www.imdb.com/list/ls085150328/?mode=desktop
http://www.imdb.com/list/ls085150393/?mode=desktop
http://www.imdb.com/list/ls085150608/?mode=desktop
http://www.imdb.com/list/ls085150671/?mode=desktop
http://www.imdb.com/list/ls085150630/?mode=desktop
http://www.imdb.com/list/ls085150621/?mode=desktop
http://www.imdb.com/list/ls085150697/?mode=desktop
http://www.imdb.com/list/ls085150698/?mode=desktop
http://www.imdb.com/list/ls085150250/?mode=desktop
http://www.imdb.com/list/ls085150251/?mode=desktop
http://www.imdb.com/list/ls085150273/?mode=desktop
http://www.imdb.com/list/ls085150215/?mode=desktop
http://www.imdb.com/list/ls085150260/?mode=desktop
http://www.imdb.com/list/ls085150924/?mode=desktop
http://www.imdb.com/list/ls085150990/?mode=desktop
http://www.imdb.com/list/ls085150993/?mode=desktop
http://www.imdb.com/list/ls085150985/?mode=desktop
http://www.imdb.com/list/ls085150989/?mode=desktop
http://www.imdb.com/list/ls085150806/?mode=desktop
http://www.imdb.com/list/ls085150857/?mode=desktop
http://www.imdb.com/list/ls085155567/?mode=desktop
http://www.imdb.com/list/ls085155564/?mode=desktop
http://www.imdb.com/list/ls085155544/?mode=desktop
http://www.imdb.com/list/ls085155772/?mode=desktop
http://www.imdb.com/list/ls085155731/?mode=desktop
http://www.imdb.com/list/ls085155739/?mode=desktop
http://www.imdb.com/list/ls085155764/?mode=desktop
http://www.imdb.com/list/ls085155741/?mode=desktop
http://www.imdb.com/list/ls085155785/?mode=desktop
http://www.imdb.com/list/ls085155105/?mode=desktop
http://www.imdb.com/list/ls085155155/?mode=desktop
http://www.imdb.com/list/ls085155154/?mode=desktop
http://www.imdb.com/list/ls085155135/?mode=desktop
http://www.imdb.com/list/ls085155124/?mode=desktop
http://www.imdb.com/list/ls085155188/?mode=desktop
http://www.imdb.com/list/ls085155695/?mode=desktop
http://www.imdb.com/list/ls085155688/?mode=desktop
http://www.imdb.com/list/ls085155202/?mode=desktop
http://www.imdb.com/list/ls085155276/?mode=desktop
http://www.imdb.com/list/ls085155218/?mode=desktop
http://www.imdb.com/list/ls085155261/?mode=desktop
http://www.imdb.com/list/ls085155224/?mode=desktop
http://www.imdb.com/list/ls085155249/?mode=desktop
http://www.imdb.com/list/ls085155291/?mode=desktop
http://www.imdb.com/list/ls085155967/?mode=desktop
http://www.imdb.com/list/ls085155963/?mode=desktop
http://www.imdb.com/list/ls085155968/?mode=desktop
http://www.imdb.com/list/ls085155927/?mode=desktop
http://www.imdb.com/list/ls085155941/?mode=desktop
http://www.imdb.com/list/ls085155992/?mode=desktop
http://www.imdb.com/list/ls085155800/?mode=desktop
http://www.imdb.com/list/ls085155801/?mode=desktop
http://www.imdb.com/list/ls085155860/?mode=desktop
http://www.imdb.com/list/ls085155843/?mode=desktop
http://www.imdb.com/list/ls085155894/?mode=desktop
http://www.imdb.com/list/ls085155898/?mode=desktop
http://www.imdb.com/list/ls085157000/?mode=desktop
http://www.imdb.com/list/ls085157002/?mode=desktop
http://www.imdb.com/list/ls085157070/?mode=desktop
http://www.imdb.com/list/ls085157078/?mode=desktop
http://www.imdb.com/list/ls085157506/?mode=desktop
http://www.imdb.com/list/ls085157557/?mode=desktop
http://www.imdb.com/list/ls085157576/?mode=desktop
http://www.imdb.com/list/ls085157537/?mode=desktop
http://www.imdb.com/list/ls085157566/?mode=desktop
http://www.imdb.com/list/ls085157525/?mode=desktop
http://www.imdb.com/list/ls085157540/?mode=desktop
http://www.imdb.com/list/ls085157544/?mode=desktop
http://www.imdb.com/list/ls085157593/?mode=desktop
http://www.imdb.com/list/ls085157599/?mode=desktop
http://www.imdb.com/list/ls085157584/?mode=desktop
http://www.imdb.com/list/ls085157707/?mode=desktop
http://www.imdb.com/list/ls085157755/?mode=desktop
http://www.imdb.com/list/ls085157771/?mode=desktop
http://www.imdb.com/list/ls085157711/?mode=desktop
http://www.imdb.com/list/ls085157739/?mode=desktop
http://www.imdb.com/list/ls085157723/?mode=desktop
http://www.imdb.com/list/ls085157744/?mode=desktop
http://www.imdb.com/list/ls085157798/?mode=desktop
http://www.imdb.com/list/ls085157105/?mode=desktop
http://www.imdb.com/list/ls085157117/?mode=desktop
http://www.imdb.com/list/ls085157116/?mode=desktop
http://www.imdb.com/list/ls085157138/?mode=desktop
http://www.imdb.com/list/ls085157169/?mode=desktop
http://www.imdb.com/list/ls085157141/?mode=desktop
http://www.imdb.com/list/ls085157199/?mode=desktop
http://www.imdb.com/list/ls085157301/?mode=desktop
http://www.imdb.com/list/ls085157306/?mode=desktop
http://www.imdb.com/list/ls085157354/?mode=desktop
http://www.imdb.com/list/ls085157375/?mode=desktop
http://www.imdb.com/list/ls085157374/?mode=desktop
http://www.imdb.com/list/ls085157319/?mode=desktop
http://www.imdb.com/list/ls085157368/?mode=desktop
http://www.imdb.com/list/ls085157327/?mode=desktop
http://www.imdb.com/list/ls085157347/?mode=desktop
http://www.imdb.com/list/ls085157348/?mode=desktop
http://www.imdb.com/list/ls085157398/?mode=desktop
http://www.imdb.com/list/ls085157609/?mode=desktop
http://www.imdb.com/list/ls085157632/?mode=desktop
http://www.imdb.com/list/ls085157640/?mode=desktop
http://www.imdb.com/list/ls085157699/?mode=desktop
http://www.imdb.com/list/ls085157206/?mode=desktop
http://www.imdb.com/list/ls085157211/?mode=desktop
http://www.imdb.com/list/ls085157230/?mode=desktop
http://www.imdb.com/list/ls085157262/?mode=desktop
http://www.imdb.com/list/ls085157220/?mode=desktop
http://www.imdb.com/list/ls085157293/?mode=desktop
http://www.imdb.com/list/ls085157287/?mode=desktop
http://www.imdb.com/list/ls085157405/?mode=desktop
http://www.imdb.com/list/ls085157404/?mode=desktop
http://www.imdb.com/list/ls085157454/?mode=desktop
http://www.imdb.com/list/ls085157471/?mode=desktop
http://www.imdb.com/list/ls085157435/?mode=desktop
http://www.imdb.com/list/ls085157432/?mode=desktop
http://www.imdb.com/list/ls085157462/?mode=desktop
http://www.imdb.com/list/ls085157420/?mode=desktop
http://www.imdb.com/list/ls085157447/?mode=desktop
http://www.imdb.com/list/ls085157496/?mode=desktop
http://www.imdb.com/list/ls085157901/?mode=desktop
http://www.imdb.com/list/ls085157904/?mode=desktop
http://www.imdb.com/list/ls085157976/?mode=desktop
http://www.imdb.com/list/ls085157978/?mode=desktop
http://www.imdb.com/list/ls085157919/?mode=desktop
http://www.imdb.com/list/ls085157935/?mode=desktop
http://www.imdb.com/list/ls085157960/?mode=desktop
http://www.imdb.com/list/ls085157962/?mode=desktop
http://www.imdb.com/list/ls085157924/?mode=desktop
http://www.imdb.com/list/ls085157800/?mode=desktop

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

相关文章

  1. 测试计划模板

    第1章 引言 1.1目的 简述本计划的目的,旨在说明各种测试阶段任务、人员分配和时间安排、工作规范等。 测试计划在策略和方法的高度说明如何计划、组织和管理测试项目。测试计划包含足够的信息使测试人员明白项目需要做什么是如何运作的。另外,清晰的文档结构能使任何一个读者…...

    2024/5/6 22:06:13
  2. Java lambda表达式,接口,内部类,匿名类的使用和区别【多测师_何sir】

    public class LambdaDemo {public static void main(String[] args) {LambdaDemo lambdaDemo = new LambdaDemo();// 创建一个内部类对象Test3 test3 = lambdaDemo.new Test3();test3.demo();// 静态内部类Test2 test2 = new LambdaDemo.Test2();test2.demo();// 匿名类Runnabl…...

    2024/5/7 1:10:53
  3. [1] JSP里的一个最简单的过滤器(filter)的例子

    一个每隔五秒钟自动刷新的jsp页面: <%@ page import="java.io.*,java.util.*" %> <html> <head> <title>Auto Refresh Header Example</title> </head> <body> <center> <h2>Auto Refresh Header Example<…...

    2024/4/12 4:20:02
  4. CPU瞒着内存竟干出这种事

    还记得我吗,我是阿Q,CPU一号车间的那个阿Q。今天忙里偷闲,来到厂里地址翻译部门转转,负责这项工作的小黑正忙得满头大汗。看到我的到来,小黑指着旁边的座椅示意让我坐下。坐了好一会儿,小黑才从工位上忙完转过身来,“实在不好意思阿Q,今天活太多,没来得及招待你”“刚…...

    2024/5/6 19:20:29
  5. 纯js实现字符串的加密和解密

    加密:function compileStr(code){var c=String.fromCharCode(code.charCodeAt(0)+code.length); for(var i=1;i<code.length;i++){ c+=String.fromCharCode(code.charCodeAt(i)+code.charCodeAt(i-1)); } return escape(c); }解密:function uncompileStr(cod…...

    2024/4/24 0:02:13
  6. 饿了么的底气与阿里巴巴的定力

    继接入支付宝之后,饿了么半年内发布了第二次重大升级:从送餐升级到送“万物与服务”,布局“身边经济”;除此之外,还做了个性化推荐、内容化互动、会员体系的升级。 由此可见阿里巴巴对饿了么的期待。并购一家公司后,如果两年未取得行业第一地位,很多大公司的做法都是“找…...

    2024/4/24 19:41:33
  7. 别再用数据库生成的ID了

    全文共1138字,预计学习时长4分钟图源:unsplash很多人都曾经至少有一次利用数据库为应用程序生成ID的经历。但事实上,这种做法在开发应用程序过程中是大错特错,使用自动递增的整数ID会则错得更加离谱。是时候彻底摆脱这个不良行为了。可以肯定的是,这会与你在101 college平…...

    2024/5/1 15:09:16
  8. 乐升半导体LT3688 是一款高效能 Uart TFT 串口屏控制芯片

    产品说明 : LT3688 是一款高效能 Uart TFT 串口屏控制芯片。其基于 ARM 9 CPU 架构,集成了视频解码、音频解码器、TFT LCD 控制器及乐升半导体的串口屏通讯协议。主要的功能就是提供 Uart 串口通讯,让外部主控 MCU 透过简易的指令就能轻易的将要显示的内容呈现在 TFT 屏上,内…...

    2024/4/23 11:09:43
  9. 已知链表中含有环,返回这个环的起始位置

    简单写一下思路:已知链表中有环,用快慢指针法找到相遇点。 因为慢指针走1步快指针走2步,那么当快慢指针相遇时,假设慢指针走了k步,那么快指针一定走了2k步,多出来的k步就是环的长度。也就是说环长度为k。此时假设相遇点距离环起点距离为m,那么环起点距离链表起点为k-m,…...

    2024/4/13 7:30:01
  10. usb setup请求结构体分析

    在USB通讯里,从主控器发出来的第一个配置包就是设备描述符配置包,目的只有一个,就是获取插入的USB属性,以便加载合适的驱动程序。现在就来详细地分析一下设备描述符包的定义。 在USB2.0的协议里找到9.3 USB Device Requests里就找到这个结构的定义,这里我使用C的定义结构如…...

    2024/4/28 8:56:14
  11. 常用的数据结构基础(结合java)

    常用的数据结构基础(结合java)数组链表数组和链表区别栈队列散列表散列表扩容为什么需要扩容扩容的判断标准树二叉树二叉堆 看了小灰的漫画算法中数据结构相关部分后,整理记录一些内容用于之后学习 数组数组的英文名是array,是有限个相同类型的变量所组成的有序集合,数组中…...

    2024/5/5 15:13:28
  12. 35、搜索插入位置

    题目描述 给定一个排序数组和一个目标值,在数组中找到目标值,并返回其索引。如果目标值不存在于数组中,返回它将会被按顺序插入的位置。 你可以假设数组中无重复元素。 示例 1: 输入: [1,3,5,6], 5 输出: 2 示例 2: 输入: [1,3,5,6], 2 输出: 1 示例 3: 输入: [1,3,5,6], 7 …...

    2024/4/13 3:17:53
  13. C# NModdbus

    https://www.cnblogs.com/pandefu/p/10849823.html作者: Peter.Pan出处: https://www.cnblogs.com/pandefu/>邮箱: defu_pan@163.com关于作者:.Net,WindowsForm,工控软件,Modbus,OPC/Tcp/Ip,串口通讯本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留…...

    2024/5/3 17:16:11
  14. 常规店铺 买家卖家业务 数据库设计源码(珍贵)

    程序员小铺 11张表:顾客信息表、商品信息表、商品的图片附表、商品的其他信息附表、商品采购记录表、商品类别表、物流信息表、订单明细表、订单表、购物车表、后台管理员账号密码;为设计顾客登录表,顾客可以直接访问通过微信号绑定,有异议可自行加表; DROP DATABASE IF E…...

    2024/4/23 3:29:35
  15. css第五天

    文章目录复杂选择器弹性布局CSS hark css核心 复杂选择器 1.兄弟选择器 兄弟元素:具备相同父元素的平级元素 兄弟选择器,只能往后找,不能往前找 ①相邻兄弟选择器 选择器1+选择器2{} 获取紧紧挨在选择器1元素后面的选择器2的元素 ②通用兄弟选择器 选择器1~选择器2{} 获取选择器…...

    2024/4/12 9:30:32
  16. 畅购商城---FastDFS---02

    ---黄色的不是主从是同步,集群是组的。组内是备份节点和同步节点。---文件上传后返回的地址:---第一步:停止镜像第二步:删除镜像第三步:安装docker run -d --name tracker --net=host morunchang/fastdfs sh tracker.sh第四步:storage启动docker run -d --name storage -…...

    2024/4/27 18:40:06
  17. node在指定时间执行代码

    在项目中我们有时需要在指定的时间来执行一定的时间,比如下午2点提示一下 安装 npm install node-schedule插件的格式介绍 * * * * * * ┬ ┬ ┬ ┬ ┬ ┬ │ │ │ │ │ │ │ │ │ │ │ └ day of week (0 …...

    2024/4/23 20:45:03
  18. 牛客-算式子(思维+差分)

    题目链接:https://ac.nowcoder.com/acm/contest/6290/E这个题目要将求得的m个结果进行异或后输出结果。对于每一个结果x的值是一定的,但有n个ai值,求1.对于前半部分,因为x的值一定,只需统计 [k*x,(k+1)*x) 的ai的数即可。2.对于后半部分较为麻烦,显然对于每个x,只需计算…...

    2024/4/26 21:23:07
  19. hr

    源码地址:https://gitee.com/ibizlab/iBizEHR 在线演示地址: http://ehr.ibizlab.cn/#/index/null/pimpeople/null/personinfotreeexpview...

    2024/4/12 6:00:55
  20. 蓝桥杯--入门训练 圆的面积

    问题描述 给定圆的半径r,求圆的面积。 输入格式 输入包含一个整数r,表示圆的半径。 输出格式 输出一行,包含一个实数,四舍五入保留小数点后7位,表示圆的面积。 数据规模与约定 1 <= r <= 10000。 #include<iostream> #include<stdio.h> #include<std…...

    2024/4/12 9:45:52

最新文章

  1. corefBERT论文阅读

    CorefBERT是清华大学团队发表的&#xff0c;继SpanBERT之后另一针对共指消解的BERT模型。共指消解任务对于文本理解、智能问答等其他NLP子任务起到至关重要的作用。 为了提高语言模型的共指推理能力&#xff0c;一个简单的解决方案是使用有监督的共指解析数据在bert等模型进行…...

    2024/5/7 3:52:05
  2. 梯度消失和梯度爆炸的一些处理方法

    在这里是记录一下梯度消失或梯度爆炸的一些处理技巧。全当学习总结了如有错误还请留言&#xff0c;在此感激不尽。 权重和梯度的更新公式如下&#xff1a; w w − η ⋅ ∇ w w w - \eta \cdot \nabla w ww−η⋅∇w 个人通俗的理解梯度消失就是网络模型在反向求导的时候出…...

    2024/5/6 9:38:23
  3. 【Java】假如把集合体系看作购物中心

    购物中心入口&#xff1a;Java集合框架 “Java集合广场”的购物中心&#xff0c;这是一个集合了各种奇特商店的地方&#xff0c;每个商店都充满了不同的宝藏&#xff08;数据结构&#xff09;。 一楼&#xff1a;基础集合区 - Collection接口 一楼是基础集合区&#xff0c;这…...

    2024/5/5 15:55:12
  4. Python读取文件里内容

    如果要读取一个文件里的内容是 # 文件名&#xff1a;db.txt 1 2 3 4代码如下 import requests f open("db.txt", mode"rb") content f.read() f.close()data content.decode(utf-8)# 存到 list 里 data_list data.split(\r\n) print(data_list)# 结果…...

    2024/5/5 8:37:34
  5. 416. 分割等和子集问题(动态规划)

    题目 题解 class Solution:def canPartition(self, nums: List[int]) -> bool:# badcaseif not nums:return True# 不能被2整除if sum(nums) % 2 ! 0:return False# 状态定义&#xff1a;dp[i][j]表示当背包容量为j&#xff0c;用前i个物品是否正好可以将背包填满&#xff…...

    2024/5/6 18:23:10
  6. 【Java】ExcelWriter自适应宽度工具类(支持中文)

    工具类 import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.CellType; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet;/*** Excel工具类** author xiaoming* date 2023/11/17 10:40*/ public class ExcelUti…...

    2024/5/6 18:40:38
  7. Spring cloud负载均衡@LoadBalanced LoadBalancerClient

    LoadBalance vs Ribbon 由于Spring cloud2020之后移除了Ribbon&#xff0c;直接使用Spring Cloud LoadBalancer作为客户端负载均衡组件&#xff0c;我们讨论Spring负载均衡以Spring Cloud2020之后版本为主&#xff0c;学习Spring Cloud LoadBalance&#xff0c;暂不讨论Ribbon…...

    2024/5/6 23:37:19
  8. TSINGSEE青犀AI智能分析+视频监控工业园区周界安全防范方案

    一、背景需求分析 在工业产业园、化工园或生产制造园区中&#xff0c;周界防范意义重大&#xff0c;对园区的安全起到重要的作用。常规的安防方式是采用人员巡查&#xff0c;人力投入成本大而且效率低。周界一旦被破坏或入侵&#xff0c;会影响园区人员和资产安全&#xff0c;…...

    2024/5/6 7:24:07
  9. VB.net WebBrowser网页元素抓取分析方法

    在用WebBrowser编程实现网页操作自动化时&#xff0c;常要分析网页Html&#xff0c;例如网页在加载数据时&#xff0c;常会显示“系统处理中&#xff0c;请稍候..”&#xff0c;我们需要在数据加载完成后才能继续下一步操作&#xff0c;如何抓取这个信息的网页html元素变化&…...

    2024/5/7 0:32:52
  10. 【Objective-C】Objective-C汇总

    方法定义 参考&#xff1a;https://www.yiibai.com/objective_c/objective_c_functions.html Objective-C编程语言中方法定义的一般形式如下 - (return_type) method_name:( argumentType1 )argumentName1 joiningArgument2:( argumentType2 )argumentName2 ... joiningArgu…...

    2024/5/6 6:01:13
  11. 【洛谷算法题】P5713-洛谷团队系统【入门2分支结构】

    &#x1f468;‍&#x1f4bb;博客主页&#xff1a;花无缺 欢迎 点赞&#x1f44d; 收藏⭐ 留言&#x1f4dd; 加关注✅! 本文由 花无缺 原创 收录于专栏 【洛谷算法题】 文章目录 【洛谷算法题】P5713-洛谷团队系统【入门2分支结构】&#x1f30f;题目描述&#x1f30f;输入格…...

    2024/5/6 7:24:06
  12. 【ES6.0】- 扩展运算符(...)

    【ES6.0】- 扩展运算符... 文章目录 【ES6.0】- 扩展运算符...一、概述二、拷贝数组对象三、合并操作四、参数传递五、数组去重六、字符串转字符数组七、NodeList转数组八、解构变量九、打印日志十、总结 一、概述 **扩展运算符(...)**允许一个表达式在期望多个参数&#xff0…...

    2024/5/7 1:54:46
  13. 摩根看好的前智能硬件头部品牌双11交易数据极度异常!——是模式创新还是饮鸩止渴?

    文 | 螳螂观察 作者 | 李燃 双11狂欢已落下帷幕&#xff0c;各大品牌纷纷晒出优异的成绩单&#xff0c;摩根士丹利投资的智能硬件头部品牌凯迪仕也不例外。然而有爆料称&#xff0c;在自媒体平台发布霸榜各大榜单喜讯的凯迪仕智能锁&#xff0c;多个平台数据都表现出极度异常…...

    2024/5/6 20:04:22
  14. Go语言常用命令详解(二)

    文章目录 前言常用命令go bug示例参数说明 go doc示例参数说明 go env示例 go fix示例 go fmt示例 go generate示例 总结写在最后 前言 接着上一篇继续介绍Go语言的常用命令 常用命令 以下是一些常用的Go命令&#xff0c;这些命令可以帮助您在Go开发中进行编译、测试、运行和…...

    2024/5/7 0:32:51
  15. 用欧拉路径判断图同构推出reverse合法性:1116T4

    http://cplusoj.com/d/senior/p/SS231116D 假设我们要把 a a a 变成 b b b&#xff0c;我们在 a i a_i ai​ 和 a i 1 a_{i1} ai1​ 之间连边&#xff0c; b b b 同理&#xff0c;则 a a a 能变成 b b b 的充要条件是两图 A , B A,B A,B 同构。 必要性显然&#xff0…...

    2024/5/6 7:24:04
  16. 【NGINX--1】基础知识

    1、在 Debian/Ubuntu 上安装 NGINX 在 Debian 或 Ubuntu 机器上安装 NGINX 开源版。 更新已配置源的软件包信息&#xff0c;并安装一些有助于配置官方 NGINX 软件包仓库的软件包&#xff1a; apt-get update apt install -y curl gnupg2 ca-certificates lsb-release debian-…...

    2024/5/6 7:24:04
  17. Hive默认分割符、存储格式与数据压缩

    目录 1、Hive默认分割符2、Hive存储格式3、Hive数据压缩 1、Hive默认分割符 Hive创建表时指定的行受限&#xff08;ROW FORMAT&#xff09;配置标准HQL为&#xff1a; ... ROW FORMAT DELIMITED FIELDS TERMINATED BY \u0001 COLLECTION ITEMS TERMINATED BY , MAP KEYS TERMI…...

    2024/5/6 19:38:16
  18. 【论文阅读】MAG:一种用于航天器遥测数据中有效异常检测的新方法

    文章目录 摘要1 引言2 问题描述3 拟议框架4 所提出方法的细节A.数据预处理B.变量相关分析C.MAG模型D.异常分数 5 实验A.数据集和性能指标B.实验设置与平台C.结果和比较 6 结论 摘要 异常检测是保证航天器稳定性的关键。在航天器运行过程中&#xff0c;传感器和控制器产生大量周…...

    2024/5/6 7:24:03
  19. --max-old-space-size=8192报错

    vue项目运行时&#xff0c;如果经常运行慢&#xff0c;崩溃停止服务&#xff0c;报如下错误 FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory 因为在 Node 中&#xff0c;通过JavaScript使用内存时只能使用部分内存&#xff08;64位系统&…...

    2024/5/7 0:32:49
  20. 基于深度学习的恶意软件检测

    恶意软件是指恶意软件犯罪者用来感染个人计算机或整个组织的网络的软件。 它利用目标系统漏洞&#xff0c;例如可以被劫持的合法软件&#xff08;例如浏览器或 Web 应用程序插件&#xff09;中的错误。 恶意软件渗透可能会造成灾难性的后果&#xff0c;包括数据被盗、勒索或网…...

    2024/5/6 21:25:34
  21. JS原型对象prototype

    让我简单的为大家介绍一下原型对象prototype吧&#xff01; 使用原型实现方法共享 1.构造函数通过原型分配的函数是所有对象所 共享的。 2.JavaScript 规定&#xff0c;每一个构造函数都有一个 prototype 属性&#xff0c;指向另一个对象&#xff0c;所以我们也称为原型对象…...

    2024/5/6 7:24:02
  22. C++中只能有一个实例的单例类

    C中只能有一个实例的单例类 前面讨论的 President 类很不错&#xff0c;但存在一个缺陷&#xff1a;无法禁止通过实例化多个对象来创建多名总统&#xff1a; President One, Two, Three; 由于复制构造函数是私有的&#xff0c;其中每个对象都是不可复制的&#xff0c;但您的目…...

    2024/5/6 7:24:01
  23. python django 小程序图书借阅源码

    开发工具&#xff1a; PyCharm&#xff0c;mysql5.7&#xff0c;微信开发者工具 技术说明&#xff1a; python django html 小程序 功能介绍&#xff1a; 用户端&#xff1a; 登录注册&#xff08;含授权登录&#xff09; 首页显示搜索图书&#xff0c;轮播图&#xff0…...

    2024/5/7 0:32:47
  24. 电子学会C/C++编程等级考试2022年03月(一级)真题解析

    C/C++等级考试(1~8级)全部真题・点这里 第1题:双精度浮点数的输入输出 输入一个双精度浮点数,保留8位小数,输出这个浮点数。 时间限制:1000 内存限制:65536输入 只有一行,一个双精度浮点数。输出 一行,保留8位小数的浮点数。样例输入 3.1415926535798932样例输出 3.1…...

    2024/5/6 16:50:57
  25. 配置失败还原请勿关闭计算机,电脑开机屏幕上面显示,配置失败还原更改 请勿关闭计算机 开不了机 这个问题怎么办...

    解析如下&#xff1a;1、长按电脑电源键直至关机&#xff0c;然后再按一次电源健重启电脑&#xff0c;按F8健进入安全模式2、安全模式下进入Windows系统桌面后&#xff0c;按住“winR”打开运行窗口&#xff0c;输入“services.msc”打开服务设置3、在服务界面&#xff0c;选中…...

    2022/11/19 21:17:18
  26. 错误使用 reshape要执行 RESHAPE,请勿更改元素数目。

    %读入6幅图像&#xff08;每一幅图像的大小是564*564&#xff09; f1 imread(WashingtonDC_Band1_564.tif); subplot(3,2,1),imshow(f1); f2 imread(WashingtonDC_Band2_564.tif); subplot(3,2,2),imshow(f2); f3 imread(WashingtonDC_Band3_564.tif); subplot(3,2,3),imsho…...

    2022/11/19 21:17:16
  27. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机...

    win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”问题的解决方法在win7系统关机时如果有升级系统的或者其他需要会直接进入一个 等待界面&#xff0c;在等待界面中我们需要等待操作结束才能关机&#xff0c;虽然这比较麻烦&#xff0c;但是对系统进行配置和升级…...

    2022/11/19 21:17:15
  28. 台式电脑显示配置100%请勿关闭计算机,“准备配置windows 请勿关闭计算机”的解决方法...

    有不少用户在重装Win7系统或更新系统后会遇到“准备配置windows&#xff0c;请勿关闭计算机”的提示&#xff0c;要过很久才能进入系统&#xff0c;有的用户甚至几个小时也无法进入&#xff0c;下面就教大家这个问题的解决方法。第一种方法&#xff1a;我们首先在左下角的“开始…...

    2022/11/19 21:17:14
  29. win7 正在配置 请勿关闭计算机,怎么办Win7开机显示正在配置Windows Update请勿关机...

    置信有很多用户都跟小编一样遇到过这样的问题&#xff0c;电脑时发现开机屏幕显现“正在配置Windows Update&#xff0c;请勿关机”(如下图所示)&#xff0c;而且还需求等大约5分钟才干进入系统。这是怎样回事呢&#xff1f;一切都是正常操作的&#xff0c;为什么开时机呈现“正…...

    2022/11/19 21:17:13
  30. 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...

    Win7系统开机启动时总是出现“配置Windows请勿关机”的提示&#xff0c;没过几秒后电脑自动重启&#xff0c;每次开机都这样无法进入系统&#xff0c;此时碰到这种现象的用户就可以使用以下5种方法解决问题。方法一&#xff1a;开机按下F8&#xff0c;在出现的Windows高级启动选…...

    2022/11/19 21:17:12
  31. 准备windows请勿关闭计算机要多久,windows10系统提示正在准备windows请勿关闭计算机怎么办...

    有不少windows10系统用户反映说碰到这样一个情况&#xff0c;就是电脑提示正在准备windows请勿关闭计算机&#xff0c;碰到这样的问题该怎么解决呢&#xff0c;现在小编就给大家分享一下windows10系统提示正在准备windows请勿关闭计算机的具体第一种方法&#xff1a;1、2、依次…...

    2022/11/19 21:17:11
  32. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”的解决方法...

    今天和大家分享一下win7系统重装了Win7旗舰版系统后&#xff0c;每次关机的时候桌面上都会显示一个“配置Windows Update的界面&#xff0c;提示请勿关闭计算机”&#xff0c;每次停留好几分钟才能正常关机&#xff0c;导致什么情况引起的呢&#xff1f;出现配置Windows Update…...

    2022/11/19 21:17:10
  33. 电脑桌面一直是清理请关闭计算机,windows7一直卡在清理 请勿关闭计算机-win7清理请勿关机,win7配置更新35%不动...

    只能是等着&#xff0c;别无他法。说是卡着如果你看硬盘灯应该在读写。如果从 Win 10 无法正常回滚&#xff0c;只能是考虑备份数据后重装系统了。解决来方案一&#xff1a;管理员运行cmd&#xff1a;net stop WuAuServcd %windir%ren SoftwareDistribution SDoldnet start WuA…...

    2022/11/19 21:17:09
  34. 计算机配置更新不起,电脑提示“配置Windows Update请勿关闭计算机”怎么办?

    原标题&#xff1a;电脑提示“配置Windows Update请勿关闭计算机”怎么办&#xff1f;win7系统中在开机与关闭的时候总是显示“配置windows update请勿关闭计算机”相信有不少朋友都曾遇到过一次两次还能忍但经常遇到就叫人感到心烦了遇到这种问题怎么办呢&#xff1f;一般的方…...

    2022/11/19 21:17:08
  35. 计算机正在配置无法关机,关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机...

    关机提示 windows7 正在配置windows 请勿关闭计算机 &#xff0c;然后等了一晚上也没有关掉。现在电脑无法正常关机以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;关机提示 windows7 正在配…...

    2022/11/19 21:17:05
  36. 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...

    钉钉请勿通过开发者调试模式是真的吗好不好用 更新时间:2020-04-20 22:24:19 浏览次数:729次 区域: 南阳 > 卧龙 列举网提醒您:为保障您的权益,请不要提前支付任何费用! 虚拟位置外设器!!轨迹模拟&虚拟位置外设神器 专业用于:钉钉,外勤365,红圈通,企业微信和…...

    2022/11/19 21:17:05
  37. 配置失败还原请勿关闭计算机怎么办,win7系统出现“配置windows update失败 还原更改 请勿关闭计算机”,长时间没反应,无法进入系统的解决方案...

    前几天班里有位学生电脑(windows 7系统)出问题了&#xff0c;具体表现是开机时一直停留在“配置windows update失败 还原更改 请勿关闭计算机”这个界面&#xff0c;长时间没反应&#xff0c;无法进入系统。这个问题原来帮其他同学也解决过&#xff0c;网上搜了不少资料&#x…...

    2022/11/19 21:17:04
  38. 一个电脑无法关闭计算机你应该怎么办,电脑显示“清理请勿关闭计算机”怎么办?...

    本文为你提供了3个有效解决电脑显示“清理请勿关闭计算机”问题的方法&#xff0c;并在最后教给你1种保护系统安全的好方法&#xff0c;一起来看看&#xff01;电脑出现“清理请勿关闭计算机”在Windows 7(SP1)和Windows Server 2008 R2 SP1中&#xff0c;添加了1个新功能在“磁…...

    2022/11/19 21:17:03
  39. 请勿关闭计算机还原更改要多久,电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机怎么办...

    许多用户在长期不使用电脑的时候&#xff0c;开启电脑发现电脑显示&#xff1a;配置windows更新失败&#xff0c;正在还原更改&#xff0c;请勿关闭计算机。。.这要怎么办呢&#xff1f;下面小编就带着大家一起看看吧&#xff01;如果能够正常进入系统&#xff0c;建议您暂时移…...

    2022/11/19 21:17:02
  40. 还原更改请勿关闭计算机 要多久,配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以...

    配置windows update失败 还原更改 请勿关闭计算机&#xff0c;电脑开机后一直显示以以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;配置windows update失败 还原更改 请勿关闭计算机&#x…...

    2022/11/19 21:17:01
  41. 电脑配置中请勿关闭计算机怎么办,准备配置windows请勿关闭计算机一直显示怎么办【图解】...

    不知道大家有没有遇到过这样的一个问题&#xff0c;就是我们的win7系统在关机的时候&#xff0c;总是喜欢显示“准备配置windows&#xff0c;请勿关机”这样的一个页面&#xff0c;没有什么大碍&#xff0c;但是如果一直等着的话就要两个小时甚至更久都关不了机&#xff0c;非常…...

    2022/11/19 21:17:00
  42. 正在准备配置请勿关闭计算机,正在准备配置windows请勿关闭计算机时间长了解决教程...

    当电脑出现正在准备配置windows请勿关闭计算机时&#xff0c;一般是您正对windows进行升级&#xff0c;但是这个要是长时间没有反应&#xff0c;我们不能再傻等下去了。可能是电脑出了别的问题了&#xff0c;来看看教程的说法。正在准备配置windows请勿关闭计算机时间长了方法一…...

    2022/11/19 21:16:59
  43. 配置失败还原请勿关闭计算机,配置Windows Update失败,还原更改请勿关闭计算机...

    我们使用电脑的过程中有时会遇到这种情况&#xff0c;当我们打开电脑之后&#xff0c;发现一直停留在一个界面&#xff1a;“配置Windows Update失败&#xff0c;还原更改请勿关闭计算机”&#xff0c;等了许久还是无法进入系统。如果我们遇到此类问题应该如何解决呢&#xff0…...

    2022/11/19 21:16:58
  44. 如何在iPhone上关闭“请勿打扰”

    Apple’s “Do Not Disturb While Driving” is a potentially lifesaving iPhone feature, but it doesn’t always turn on automatically at the appropriate time. For example, you might be a passenger in a moving car, but your iPhone may think you’re the one dri…...

    2022/11/19 21:16:57