CS101 Assignment#3 Maze ProblemDue date: Thursday, Jan.2, 2020(until20:30)Problem description:Amaze is represented by a two dimensional array “maze[10][10]”:maze[10][10]={{2,3,2,2,2,2,2,2,2,2}, {2,0,0,0,0,0,2,0,0,2}, {2,0,2,0,2,0,0,0,0,2}, {2,0,0,2,0,2,0,0,0,2}, {2,2,0,2,0,2,0,2,0,2}, {2,0,0,0,0,0,0,0,0,2}, {2,2,2,0,2,2,0,2,0,2}{2,2,2,0,2,2,0,0,0,2}{2,2,0,2,2,2,0,0,0,2}{2,2,2,2,2,2,2,2,4,2}};In “maze[10][10]”,the first“10” denotes the height of the array and the seconddenotes the width of the CS101留学生作业代写、Java,c++编程语言作业代做、代做Python,Java实验作业 帮做C/C++编程|代写array. As the result, this array has 10 rows and 10 columns thatwe can call it 10*10 array. If we want to access the element within this array we only needto change the coordinate of “maze[10][10]”, for example “maze[3][4]” is the number “0” inrow4 and column5. Note that, when you access the array, it goes from maze[0][0] tomaze[9][9]. Within this array:1)The number“2” means the wall that you cannot go through;2) “3” means the entrance and “4” means the exit;3)Only the number “0” can be passed.转自:http://www.6daixie.com/contents/9/4759.html
讲解:CS101、Java,c++、Python,JavaC/C++|R
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。