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

📄 result.h

📁 用分支界限法实现的n后问题 vc++ 语言效率很好
💻 H
字号:
#if !defined(AFX_RESULT_H__7D39C7CC_0BD8_44B6_BE4D_2DF39E91B18C__INCLUDED_)
#define AFX_RESULT_H__7D39C7CC_0BD8_44B6_BE4D_2DF39E91B18C__INCLUDED_

#include "mid.h"
#include "math.h"

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// result.h : header file
//



/////////////////////////////////////////////////////////////////////////////
// result command target

class result : public CObject
{
	//DECLARE_DYNCREATE(result)
public:
	result();           // protected constructor used by dynamic creation

// Attributes
public:
CTypedPtrList <CObList,mid*>midlist;
int save[100];//存储n行放在save[n]位置
int n;
bool canarrange;
mid x[1000];
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(result)
	//}}AFX_VIRTUAL

// Implementation
	public:
		void setn(int x);
		int absint(int a);
		bool place(int row, int column, int father);
		void GET();

	// Generated message map functions
	//{{AFX_MSG(result)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

	//DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_RESULT_H__7D39C7CC_0BD8_44B6_BE4D_2DF39E91B18C__INCLUDED_)

⌨️ 快捷键说明

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