⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 queens.cpp

📁 优化皇后问题的代码
💻 CPP
字号:
/////////////////////////////////////////////////////////////////////////////
//              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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -