将马随即放在国际象棋的8×8棋盘Board[8][8]的某个方格中,马按走棋规则进行移动。要求每个方格只进入一次,走遍棋盘上全部64个方格。编制非递归程序,求出...
代码说明:
将马随即放在国际象棋的8×8棋盘Board[8][8]的某个方格中,马按走棋规则进行移动。要求每个方格只进入一次,走遍棋盘上全部64个方格。编制非递归程序,求出马的行走路线,并按求出的行走路线,将数字1,2,……,64依次填入一个8×8的方阵,输出之。-Ma immediately on the international chess 8 8 chessboard Board [8] [8] of a box, MA by the rules of chess go mobile. Requires each box only entered once traveled chessboard all 64 box. Preparation of non- recursive procedure, and seeking stepped routes, with a calculated routes, the figures 1, 2, ..., 64 were filled an 8 x 8 matrix, put it out.
下载说明:请别用迅雷下载,失败请重下,重下不扣分!