📄 applyhint.cpp
字号:
// ApplyHint.cpp: implementation of the CApplyHint class.
//
//////////////////////////////////////////////////////////////////////
#include "ApplyHint.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CApplyHint::CApplyHint()
{
m_hint_set = false;
}
void CApplyHint::ApplyHint(const CSolution &sln, CSolutionSet &output)
{
sln.ApplyHint(m_hint, output);
}
void CApplyHint::Apply(const CSolutionSet &input, CSolutionSet &output)
{
if (!m_hint_set) {
return;
}
int in_cnt = input.GetSize();
for (int i=0; i<in_cnt; i++) {
ApplyHint(input.GetAt(i), output);
}
}
void CApplyHint::SetHint(CHint hint)
{
m_hint = hint;
m_hint_set = true;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -