CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 Windows编程

文件名称:vc62445261344

介绍说明--下载内容来自于网络,使用问题请自行百度

摘 要

本设计的内容是在一个八行八列的国际棋盘上,放置八个皇后,要求在任意一行,任意一列及任意一条对角线上都不能出现两个棋子。

本设计所涉及到的程序设计语言是VC++,采用的是递归和回溯的方法。首先在棋盘上找到一个位置,放置其中的一个皇后,然后对该皇后进行检查,查看她是否与棋盘同一行、同一列或同一斜线上已存在的皇后发生冲突。如果该皇后与棋盘上已经存在的皇后不发生冲突,则该皇后就摆放在此位置,继续试探下一个皇后的合适的位置;如果该皇后与棋盘上已经存在的皇后反生冲突,则该皇后就不能放在此位置,继续试探此皇后的下一个位置。直到将八个皇后都放到棋盘上,则问题解决。通过以上的方法对本课设题目进行设计与调试最后成功的输出了八皇后所有的92中合理布局,完成了设计题目的要求。

关 键 词:递归算法,八皇后,回溯法,VC++

-Abstract

The design of the content is in a line of eight international board, placed on any requirement, eight queen, any column and any diagonals cannot appear on two pieces.

This design involves the programming language is used, vc++ is recursive and back. First find a position on board, and placed in one of the queen, then the queen to inspect, check whether she and board with the same column or the same line, the queen of the existing cross-court conflict. If the queen and board existing queen not conflict, the queen will put in this position, continue to test a queen s place, If the queen on board with the queen the already existing conflict, the queen was born in this position, can continue to test the queen s next position. Until eight queen on board, problem solving. Through the above method for this class set subject designing and debugging of the output of the 92 8queens all reasonable layout, completed the design set the topic request.

Keywords: Recursive algorithm,Eight
(系统自动生成,下载前可以参看下载内容)

下载文件列表

vc62445261344/res/EightQueen.rc2
vc62445261344/res/EightQueen.ico
vc62445261344/res
vc62445261344/EightQueen.aps
vc62445261344/EightQueen.clw
vc62445261344/EightQueen.cpp
vc62445261344/EightQueen.dsp
vc62445261344/EightQueen.dsw
vc62445261344/EightQueen.h
vc62445261344/EightQueen.ncb
vc62445261344/EightQueen.opt
vc62445261344/EightQueen.plg
vc62445261344/EightQueen.rc
vc62445261344/EightQueenDlg.cpp
vc62445261344/EightQueenDlg.h
vc62445261344/QueenPanel.cpp
vc62445261344/QueenPanel.h
vc62445261344/ReadMe.txt
vc62445261344/Resource.h
vc62445261344/StdAfx.cpp
vc62445261344/StdAfx.h
vc62445261344/相关说明.txt
vc62445261344
vc62445261344/下载说明.html
vc62445261344/fwvv.net说明.txt

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com