文件名称:horse
介绍说明--下载内容均来自于网络,请自行研究使用
:将马随机放在国际象棋的8X8棋盘Bo阿rd[0..7,0..7]的某个方格中,马按走棋规则进行移动。
要求每个方格上只进入一次,走遍棋盘上全部64个方格。编制非递归程序,求出马的行走路线 ,并按求出的行走路线,
将数字1,2,…,64依次填入8X8的方阵输出之。- The horses were placed in the 8X8 chess board Bo A rd [0 .. 7,0 .. 7] of a box, the horse to move according to the rules for playing chess. Requires that each box is only entered once, traveled all the 64 squares on a chessboard. The preparation of non-recursive program, seeking to run for the routes, according to find the routes for the digital 1,2, ..., 64 in turn fill the square 8X8 output.
要求每个方格上只进入一次,走遍棋盘上全部64个方格。编制非递归程序,求出马的行走路线 ,并按求出的行走路线,
将数字1,2,…,64依次填入8X8的方阵输出之。- The horses were placed in the 8X8 chess board Bo A rd [0 .. 7,0 .. 7] of a box, the horse to move according to the rules for playing chess. Requires that each box is only entered once, traveled all the 64 squares on a chessboard. The preparation of non-recursive program, seeking to run for the routes, according to find the routes for the digital 1,2, ..., 64 in turn fill the square 8X8 output.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
horse.cpp