话不多说,直接上代码,输入一个整数就行(有2个函数是借鉴大佬的)头文件私信找我
#include<iostream>
#include<ctime>
#include<windows.h>
#include<cstring>
#include<string>
#include<cmath>
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#include<colordlg.h>
#include"colordlg.h"
#include"fontcolor.h"
#include <stdio.h>
#include <locale.h>
using namespace std;
typedef unsigned long long ul;
struct blocks{
ul map_x;
ul map_y;
int map_=2191;};
blocks maps[1024][1024];
ul maps_x,maps_y;//先y后x
string bl="■"; //□■0,三种切换
//输入地图
void map_in(){
for(ul i = 1;i<=maps_y;i++)
for(ul j = 1;j<=maps_x;j++)
cin>>maps[i][j].map_;
sys