applyhint.h
来自「爱因斯坦谜题」· C头文件 代码 · 共 30 行
H
30 行
// ApplyHint.h: interface for the CApplyHint class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_APPLYHINT_H__41A2317A_3243_4102_A607_69C72962F82E__INCLUDED_)
#define AFX_APPLYHINT_H__41A2317A_3243_4102_A607_69C72962F82E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "SolutionSet.h"
class CApplyHint
{
public:
CApplyHint();
void SetHint(CHint hint);
virtual void Apply(const CSolutionSet &input, CSolutionSet &output);
protected:
CHint m_hint;
bool m_hint_set;
// 求输入sln在增加当前hint后的所有可能解,将这些解增加到output
virtual void ApplyHint(const CSolution &sln, CSolutionSet &output);
};
#endif // !defined(AFX_APPLYHINT_H__41A2317A_3243_4102_A607_69C72962F82E__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?