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

📄 repcomb1.h

📁 穷举法进行三八二十四的计算。列举所有可能的表达式进行计算筛选。
💻 H
字号:
// CombRepElem.h: interface for the CCombRepElem class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_COMBREPELEM_H__980D3DCF_B4C2_11D9_ABF6_000AEB106808__INCLUDED_)
#define AFX_COMBREPELEM_H__980D3DCF_B4C2_11D9_ABF6_000AEB106808__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
struct CCouple
{
	int x;
	int y;
};
class CRepComb  
{
protected:
	int NextElem(int n);
	int m_nDiffElem;
	bool IsSelectable(int nIndex,int n);
	void ResetMark(int nIndex,int n);
	void SetMark(int nIndex,int  n);
	int m_nm,m_nn,m_nLength;
	//以下三数组使用同一长度
	int *m_pScope;
	int *m_pSel;
	int *m_pLastPos;
	CCouple* m_pCouple;
public:
	void get(int a[]);
	bool next(bool bInitiate=false);
	void initiate(int*  a,int numDiffElem,int m);
	CRepComb();
	virtual ~CRepComb();

};

#endif // !defined(AFX_COMBREPELEM_H__980D3DCF_B4C2_11D9_ABF6_000AEB106808__INCLUDED_)

⌨️ 快捷键说明

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