Files
BK_bishe1/编写代码/maze_func_output.cpp
氧原子 6c7fde5740 1
2025-04-25 14:33:54 +08:00

52 lines
761 B
C++

#include<iostream>
#include<string>
#include"eyebot++.h"
#include"maze_func.h"
#include"maze_parameter.h"
using namespace std;
/*---打印数组检查错误---*/
/*---打印数组mark---*/
void output_mark()
{
for (int i = 5; i >= 0; i--)
{
for (int j = 0; j < 6; j++)
{
cout << mark[j][i] ;
}
cout << endl;
}
}
/*---打印数组wall---*/
void output_wall()
{
for (int i = 6; i >= 0; i--)
{
for (int j = 0; j < 7; j++)
{
if (wall[j][i][1] == 1)
{
cout << "|" ;
}
else
{
cout << " " ;
}
if (wall[j][i][0] == 1)
{
cout << "_" ;
}
else
{
cout << " " ;
}
}
cout << endl;
}
}
/*---打印数组map---*/