Fork me on GitHub
摘要: 上两篇用C#写了数独构造与求解的程序,不过我还是喜欢用C++实现,所以又将程序用C++实现了一下,至于方法什么的就不再重复了,见上两篇博文 一下是程序的一些关键代码 将每一小格抽象为一个对象: Cell.h#ifndef GUARD_Cell_h#define GUARD_Cell_h#include "Coord.h"#include <list>class Cell{ public: Cell(int x=0,int y=0); bool IsProcessed() const; int X() const; int ... 阅读全文
posted @ 2012-05-11 21:21 _Lei 阅读(3187) 评论(1) 推荐(1) 编辑