?? compare_first.h
字號:
#pragma once
#include "searcher.h"
#include "dfs.h"
#include "bdfs.h"
#include "idfs.h"
#include "bfs.h"
#include "tbfs.h"
#include "astar1.h"
#include "astar2.h"
#include "ida.h"
// CCompare_first 對話框
class CCompare_first : public CDialog
{
DECLARE_DYNAMIC(CCompare_first)
public:
CCompare_first(CWnd* pParent = NULL); // 標準構造函數
virtual ~CCompare_first();
// 對話框數據
enum { IDD = IDD_COMPARE };
//各種搜索算法
DFS dfs;
BDFS bdfs;
IDFS idfs;
BFS bfs;
TBFS tbfs;
ASTAR1 astar1;
ASTAR2 astar2;
IDA ida;
//控件資源
struct COMP{
searcher *search;
int step_item;
int node_item;
int key_item;
}comp[9];
//搜索是否停止狀態
int stop;
int m_heuristic; // 啟發函數系數
int m_maxstep; //有界深度優先函數界限
int m_begin, m_end; //開始結束狀態
void getHer(int her){m_heuristic = her;}
void getMaxstep(int maxstep){m_maxstep = maxstep;}
void getStatus(int begin, int end){m_begin = begin, m_end = end;}
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedCompSearch();
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -