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

📄 inputdlg.cpp

📁 此程序实现了堆排序,并且使用了MFC的图形界面,非常实用
💻 CPP
字号:
// InputDlg.cpp : implementation file
//

#include "stdafx.h"
#include "HeapSort.h"
#include "InputDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CInputDlg dialog


CInputDlg::CInputDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CInputDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CInputDlg)
	m_nEdit1 = 7;
	m_nEdit2 = 6;
	m_nEdit3 = 5;
	m_nEdit4 = 4;
	m_nEdit5 = 3;
	m_nEdit6 = 2;
	m_nEdit7 = 1;
	//}}AFX_DATA_INIT
}


void CInputDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CInputDlg)
	DDX_Text(pDX, IDC_EDIT1, m_nEdit1);
	DDV_MinMaxInt(pDX, m_nEdit1, 0, 100);
	DDX_Text(pDX, IDC_EDIT2, m_nEdit2);
	DDV_MinMaxInt(pDX, m_nEdit2, 0, 100);
	DDX_Text(pDX, IDC_EDIT3, m_nEdit3);
	DDV_MinMaxInt(pDX, m_nEdit3, 0, 100);
	DDX_Text(pDX, IDC_EDIT4, m_nEdit4);
	DDV_MinMaxInt(pDX, m_nEdit4, 0, 100);
	DDX_Text(pDX, IDC_EDIT5, m_nEdit5);
	DDV_MinMaxInt(pDX, m_nEdit5, 0, 100);
	DDX_Text(pDX, IDC_EDIT6, m_nEdit6);
	DDV_MinMaxInt(pDX, m_nEdit6, 0, 100);
	DDX_Text(pDX, IDC_EDIT7, m_nEdit7);
	DDV_MinMaxInt(pDX, m_nEdit7, 0, 100);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CInputDlg, CDialog)
	//{{AFX_MSG_MAP(CInputDlg)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CInputDlg message handlers

⌨️ 快捷键说明

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