简单有趣的算法——八皇后问题
摘要:
这是个经典的算法,我就不多说了。下面的代码不是我原创的,收集一下这些经典算法的实现,供自己和有兴趣的朋友学习学习。Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 #include "stdafx.h" 2 #include 3 #include 4 5 int place(int k, int*x); 6 void queens(int n); 7 void main() 8 { 9 queens(8);10 sys 阅读全文
posted @ 2010-06-11 22:06 unsigned 阅读(894) 评论(0) 推荐(0) 编辑