摘要: 1 int arr[8][8] = {0}; //arr[row][col]; 2 3 4 //表示第几个棋子 5 int check(int row,int col){ 6 7 //1,同一列不能有皇后 8 for(int i = 0; i < 8; i++){ 9 if(arr[i][col] 阅读全文
posted @ 2020-02-26 09:05 程序猿101 阅读(205) 评论(0) 推荐(0) 编辑