登录
首页 » Windows开发 » (九宫问题)在一个3×3的九宫中有1-8这8个数及一个空格随机的摆放在其中的格子里。现在要求实现这个问题:将该九宫格调整为如图1-1右图所示的形式。调整的规则是...

(九宫问题)在一个3×3的九宫中有1-8这8个数及一个空格随机的摆放在其中的格子里。现在要求实现这个问题:将该九宫格调整为如图1-1右图所示的形式。调整的规则是...

于 2022-05-31 发布 文件大小:33.91 kB
0 115
下载积分: 2 下载次数: 1

代码说明:

(九宫问题)在一个3×3的九宫中有1-8这8个数及一个空格随机的摆放在其中的格子里。现在要求实现这个问题:将该九宫格调整为如图1-1右图所示的形式。调整的规则是:每次只能将与空格(上、下、或左、右)相邻的一个数字平移到空格中。试编程实现这一问题的求解。 -----------VC完整应用程序代码-(JiuGongTu) in a 3 3 JiuGongTu are 1-8 this August and the number of a random display spaces in which the grid yard. Now demands of the problem : this Jiugongge adjusted to the squad as shown in Figure 1-1 forms. Adjusted rules : Each will only spaces (upper and lower, or left and right), a number of adjacent spaces- were moved. Test Programming Solution of this problem.----------- VC complete application code

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论


0 个回复

  • 696518资源总数
  • 105179会员总数
  • 5今日下载