1
This commit is contained in:
52
编写代码/maze_func_output.cpp
Normal file
52
编写代码/maze_func_output.cpp
Normal file
@@ -0,0 +1,52 @@
|
||||
#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---*/
|
||||
Reference in New Issue
Block a user