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

📄 dialogyb.cpp

📁 BFS、DFS、有向图、无向图中的各种算法的实现
💻 CPP
字号:
// DialogYB.cpp : implementation file
//

#include "stdafx.h"
#include "graph.h"
#include "DialogYB.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDialogYB dialog


CDialogYB::CDialogYB(CWnd* pParent /*=NULL*/)
	: CDialog(CDialogYB::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDialogYB)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	m_nfunction = 0;
}


void CDialogYB::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDialogYB)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDialogYB, CDialog)
	//{{AFX_MSG_MAP(CDialogYB)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
	ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
	ON_BN_CLICKED(IDC_BUTTON4, OnButton4)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDialogYB message handlers

BOOL CDialogYB::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	m_1.AutoLoad(IDC_BUTTON1,this);
	m_2.AutoLoad(IDC_BUTTON2,this);
	m_3.AutoLoad(IDC_BUTTON3,this);
	m_4.AutoLoad(IDC_BUTTON4,this);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CDialogYB::OnButton1() 
{
	m_nfunction = 1;
	CDialog::OnOK();
	
}

void CDialogYB::OnButton2() 
{
	m_nfunction = 2;
	CDialog::OnOK();
	
}

void CDialogYB::OnButton3() 
{
	m_nfunction = 3;
	CDialog::OnOK();
	
}

void CDialogYB::OnButton4() 
{
	m_nfunction = 4;
	CDialog::OnOK();
}

⌨️ 快捷键说明

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