摘要:
重写八皇后,最开始用双层循环,然后用递归重写,还是递归易懂,优雅 1 #include 2 #include 3 #include 4 #include 5 #include "stack_seq_generic.h" 6 7 #define QUEEN 4 8 9 typedef struct{ 10 int x; 11 int y; 12 } Point; 13 14 BOOL in_border(int x){ 15 if (x>=0 && xtop; 23 Point *base = (Point *)s->base; 2... 阅读全文