二维数组定义地图哪里有错求大神指出
int main(){
int map[15][13] = {0,0,0,3,2,1,2,3,2,1,0,0,0
0,10,10,2,0,0,0,0,0,2,0,0,0
0,10,10,1,0,0,0,0,0,3,0,0,0
0,7,0,2,0,0,0,0,0,2,0,0,0
2,1,2,9,0,0,0,0,0,4,2,3,2
3,0,0,0,0,0,0,0,0,0,0,0,1
2,0,0,0,0,0,0,0,0,0,0,0,2
8,1,1,1,1,1,5,5,1,1,1,1,6
2,0,0,0,0,0,0,0,0,0,0,0,2
3,0,0,0,0,0,0,0,0,0,0,0,1
2,1,2,9,0,0,0,0,0,4,2,3,2
0,0,0,2,0,0,0,0,0,2,0,7,0
0,0,0,1,0,0,0,0,0,3,11,11,0
0,0,0,2,0,0,0,0,0,2,11,11,0
0,0,0,3,2,1,2,3,2,1,0,0,0
};
int i,j;
for(i=0; i<15; i++)
{
for(j=0; j<13; j++)
{
if(map[i][j]==0)
printf("■");
else if(map[i][j]==1)
printf("◆");
else if(map[i][j]==3)
printf("◇");
else if(map[i][j]==2)
printf("♠");
else if(map[i][j]==4)
printf("★");
else if(map[i][j]==5)
printf("☀");
else if(map[i][j]==6)
printf("←");
else if(map[i][j]==8)
printf("→");
else if(map[i][j]==9)
printf("☆");
else if(map[i][j]==7)
printf("☯");
else if(map[i][j]==10)
printf("☺");
else if(map[i][j]==11)
printf("☻");
else if(j==12)
printf("\n");
}
}
//show();
return 0;
}