?? 堆排序1dlg.h
字號(hào):
// 堆排序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,它有一個(gè)r數(shù)組和一個(gè)
}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_)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -