result.h

来自「用分支界限法实现的n后问题 vc++ 语言效率很好」· C头文件 代码 · 共 60 行

H
60
字号
#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 + =
减小字号Ctrl + -
显示快捷键?