国王棋:https://generals.gxwtf.cn/
炮台:https://turrets.easel.games/
AcWing:https://acwing.com/
太空大战http://103.236.99.249:61316/login
-O2 -std=c++14
#include <windows.h>
#include <bits/stdc++.h>
void ColorPrint(const std::string& text, int color){
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hConsole,color);
std::cout<<text;
SetConsoleTextAttribute(hConsole,7);
}
int w[11][11]={
{0,0,0,0,0,0,0,0,0,0},
{0,255,255,255,255,255,255,255,255,255,255},
{0,255,255,221,255,255,102,102,255,255,255},
{0,255,221,255,221,255,102,255,102,255,255},
{0,255,221,255,255,255,102,102,255,255,255},
{0,255,255,221,255,255,102,102,102,255,255},
{0,255,255,255,221,255,102,255,255,102,255},
{0,255,221,255,221,255,102,255,255,102,255},
{0,255,255,221,255,255,102,102,102,255,255},
{0,255,255,255,255,255,255,255,255,255,255},
{0,153,153,153,153,153,153,153,153,153,153},
};
int main(){
for (int i=1;i<=10;i++){
for (int j=1;j<=10;j++){
ColorPrint("XX",w[i][j]);
}
printf("\n");
}
return 0;
}