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

📄 queen.h

📁 backtract.rar
💻 H
字号:
// queen.h: interface for the queen class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_QUEEN_H__D3B15A81_87A9_11DB_AEFD_50784C6B064B__INCLUDED_)
#define AFX_QUEEN_H__D3B15A81_87A9_11DB_AEFD_50784C6B064B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include<iostream.h>
class queen  
{
public:
	//queen();
	queen(int m);
	void backtract(int t);
	bool place(int k);
//	virtual ~queen();
private:
	int sum;//used to show the number of the solutions
	int n;//it is the number of queen
	int *x;//x[i] is the value of the column of ith row

};

#endif // !defined(AFX_QUEEN_H__D3B15A81_87A9_11DB_AEFD_50784C6B064B__INCLUDED_)

⌨️ 快捷键说明

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