有了这句
···cpp
if ((map[i][j]=0)&&(visited[i][j]=false)) map[i][j]=2;
···
就全输出0.
什么鬼(撞墙
by 八声甘州 @ 2017-09-27 17:42:36
if ((map[i][j]=0)&&(visited[i][j]=false)) map[i][j]=2;
if ((map[i][j]=0)&&(visited[i][j]==false)) map[i][j]=2;
by bdflyao @ 2017-10-24 05:52:10