mirror of
https://gitee.com/yyz_o/bk_bishe_pi.git
synced 2025-09-07 23:21:26 +00:00
2025.5.15第三次提交,继续修改
This commit is contained in:
@@ -26,11 +26,11 @@ void output_arr2D(int size_x, int size_y, int *arr)
|
||||
void output_arrwall(int size_x, int size_y, int *arr)
|
||||
{
|
||||
|
||||
for (int i = size_y - 1; i >= 0; i--)
|
||||
for (int i = size_y; i >= 0; i--)
|
||||
{
|
||||
for (int j = 0; j < size_x; j++)
|
||||
for (int j = 0; j <= size_x; j++)
|
||||
{
|
||||
if (arr[(j * size_y * 2) + (i * 2) + 1] == 1)
|
||||
if (arr[(j * (size_y + 1) * 2) + (i * 2) + 1] == 1)
|
||||
{
|
||||
cout << "|" ;
|
||||
}
|
||||
@@ -39,7 +39,7 @@ void output_arrwall(int size_x, int size_y, int *arr)
|
||||
cout << " " ;
|
||||
}
|
||||
|
||||
if (arr[(j * size_y * 2) + (i * 2) + 0] == 1)
|
||||
if (arr[(j * (size_y + 1) * 2) + (i * 2) + 0] == 1)
|
||||
{
|
||||
cout << "_" ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user