queens.cpp

来自「优化皇后问题的代码」· C++ 代码 · 共 38 行

CPP
38
字号
/////////////////////////////////////////////////////////////////////////////
//              Copyright (c) 10.2003 Lchrennew Personal.                  //
//                         All rights reserved.                            //
//              Lchrennew个人 版权所有 不得抄袭 违者必究                   //
/////////////////////////////////////////////////////////////////////////////

// Queens.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "iostream.h"

#include "Queens.h"
#include "discription.h"

///////////////////////////Main Functions (主函数)///////////////////////////
int main(int argc, char* argv[])
{
	char option;											//选项
	////////////////////////////////////欢迎信息///////////////////////////////
	cout<<endl<<"LOADING AND INITIALIZING..."<<endl<<endl<<"Welcome to use this software!\n\n"<<endl;
	Copyright();
	fList();
	////////////////////////////////开始进行功能选择///////////////////////////
	cout<<endl<<"Please choose your choice here!"
		<<endl<<"[?=HELP/S=SOLVE/Q=QUIT]"
		<<endl;
	do														//若输入选项不是有效值,重新输入,直到输入有效值
	{
		cout<<'>';
		cin>>option;
	}while((option!='Q')&&(option!='S')&&(option!='q')&&(option!='s')&&(option!='?'));

	Option(option);											//功能实现

	return 0;
}

⌨️ 快捷键说明

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