摘要: //数独游戏c++ class CSudoku { int map[9][9]; int blanks; int smod; int solves; int check(int,int,int*); void dfs(); public: enum{ANY=0,ALL=1}; CSudoku(int); CSudoku::CSudoku(int *data); void... 阅读全文
posted @ 2016-11-24 17:39 Pumpkin0227 阅读(3169) 评论(0) 推荐(0) 编辑
摘要: #include #include #define SIZE 5 typedef struct node{ int x; int y; int step; }node; int map[SIZE][SIZE]={{1,1,1,1,1},{1,1,1,1,1},{1,1,1,1,1},{1,1,1,1,1},{1,1,1,1,1}}; node queue[30]; i... 阅读全文
posted @ 2016-11-24 15:43 Pumpkin0227 阅读(169) 评论(0) 推荐(0) 编辑