📄 resultdlg1.h
字号:
#if !defined(AFX_RESULTDLG1_H__DE22BE40_066B_41F3_B478_10382015760F__INCLUDED_)
#define AFX_RESULTDLG1_H__DE22BE40_066B_41F3_B478_10382015760F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ResultDlg1.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CResultDlg dialog
class CResultDlg : public CDialog
{
// Construction
public:
struct HNode
{
float weight;
int parent,lchild,rchild;
};
public:
void Output2(int l1,int l2,int l3,int num);
void Extendcoding2();
void MySelect(int& s1,int& s2,int num);
void Huffmancoding();
float computer(float* w,char** HC);
int type;//1为输出扩展编码,0为输出最优编码
void mychange(char *str,int n,int len);
int givenum(int n);
LVITEM item;
void Output(int l1,int l2);
void Extendcoding(int num,int flag,int a);
int flag;
int num;
float* w;
float* w2;
float* wtemp;
char** be;//最优的编码
float lea;//信息冗余量
HNode *HT; //Huffman树
int two;
int three;
CResultDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CResultDlg)
enum { IDD = IDD_DIALOGRESULT };
CListCtrl m_ListCtl;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CResultDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CResultDlg)
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_RESULTDLG1_H__DE22BE40_066B_41F3_B478_10382015760F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -