smain.cpp

来自「数据结构与程序设计教材源码 数据结构与程序设计教材源码」· C++ 代码 · 共 20 行

CPP
20
字号
 
#include "../../C/UTILITY.H"
#include "../../C/UTILITY.CPP"
#include "SQUEENS.H"
#include "SQUEENS.CPP"
 
main()
{
   int board_size;
   print_information();
   cout << "What is the size of the board? " << flush;
   cin >> board_size;
   if (board_size < 0 || board_size > max_board)
      cout << "The number must be between 0 and " << max_board << endl;
   else {
      Queens configuration(board_size); //   Initialize an empty configuration.
      solve_from(configuration); //  Find all solutions extending configuration.
   }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?