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

📄 堆排序1dlg.h

📁 这是用VC++做的一个堆排序的程序
💻 H
字号:
// 堆排序1Dlg.h : header file
//

#if !defined(AFX_1DLG_H__94A98A33_3BB9_45AB_B464_DBFF5EA0C320__INCLUDED_)
#define AFX_1DLG_H__94A98A33_3BB9_45AB_B464_DBFF5EA0C320__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define maxsize 100

/////////////////////////////////////////////////////////////////////////////
// CMy1Dlg dialog
#include<stdio.h>
#include<iostream.h>
#define maxsize 100
typedef struct{
    float key;
	char info;
}elemtype;
typedef struct{
	elemtype r[maxsize];
    int length;                                     //定义类型headtype,它有一个r数组和一个
}headtype;      

class CMy1Dlg : public CDialog
{
// Construction
public:

	int m_luojihang;
	int m_nowlen;
	int m_adjtime;
	void HeadAdjust(int s,int m);
	void Headsort();
	headtype m_h;
	int m_KeyNum;
	float m_RealKey[maxsize];
	int KeyNum;
	float RealKey[maxsize];	
	CMy1Dlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CMy1Dlg)
	enum { IDD = IDD_MY1_DIALOG };
	CListBox	m_Jieguo;
	CListBox	m_Keylist;
	CString	m_Key;
	float	m_number;
	CString	m_yipaixu;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMy1Dlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL
// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMy1Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButton2();
	afx_msg void OnButton1();
	afx_msg void OnButton5();
	afx_msg void OnButton3();
	afx_msg void OnButton4();
	afx_msg void OnButton7();
	afx_msg void OnButton8();
	afx_msg void OnButton6();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_1DLG_H__94A98A33_3BB9_45AB_B464_DBFF5EA0C320__INCLUDED_)

⌨️ 快捷键说明

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