#include <iostream> #include <stack> using namespace std; const int MAXSIZE = 8;//棋盘大小 int chess[MAXSIZE][MAXSIZE]={0};//棋盘 /* 定义栈结点,表示一个皇后的位置*/ struc……