2014年3月27日

多线程进行n皇后计算

摘要: 在浏览zhihu的时候, 看到了这个问题:Linux c++服务器端这条线怎么走?http://www.zhihu.com/question/22608820 , 其中排第一的答案说的很不错。针对他结尾处给出的问题,一直想自己做一下,最近工作不忙,也写了以下,还是发现了一些自己存在的问题,总结一下吧。一个简单的8皇后问题可以比较容易的实现#include #include #include int cntTotal = 0;int BOARDSIZE=11;bool markboard(bool* b, int row, int col){ for(int i =row;i=0; ++i... 阅读全文

posted @ 2014-03-27 11:35 一颗麦粒 阅读(1505) 评论(0) 推荐(0) 编辑

导航