0001 #include <iostream> 0002 using namespace std; 0003 #include <stdio.h> 0004 #include <stdlib.h> 0005 #include "stack/stack.h" //栈 0006 #include "queen.h" //引入皇后类 0007 0008 typedef enum {Continuous, Step} RunMode; 0009 0010 extern RunMode runMode; //运行模式 0011 extern int nSolu; //解的总数 0012 extern int nCheck; //尝试的总次数 0013 0014 void placeQueens ( int ); 0015 void displayRow ( Queen& q, int ); 0016 void displayProgress ( Stack<Queen>& S, int );