不好意思让大家久等了
代码如下:
#include <bits/stdc++.h>
#include <conio.h>
#include <windows.h>
#define high 20
#define length 500
using namespace std;
int row=19,line=2,a[high][length]={0};
void get_new(void);//开始新游戏
void SetTitle(LPCSTR lpTitle) {
SetConsoleTitle(lpTitle);
}
void all_in_2(void){
for(int i=1;i<=high;i++) for(int j=1;j<=length;j++) a[i][j]=2;
}
void DrawInMillSecond(int millsecond_of_words,string pll){//逐字输出
for(int i=0;i<=pll.size()-1;i++) Sleep(millsecond_of_words),cout<<pll[i];
cout<<endl;
}
void HideCursor(void){
CONSOLE_CURSOR_INFO cursor_info = {1, 0};
SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE), &cursor_info);
}
void color(string pll){
if(pll=="g") SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |FOREGROUND_GREEN);
if(pll=="b"