bytext.cpp

来自「匈牙利法解决分派问题」· C++ 代码 · 共 51 行

CPP
51
字号
// bytext.cpp : implementation file
//

#include "stdafx.h"
#include "匈牙利法解分派问题.h"
#include "bytext.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern int select_num;
/////////////////////////////////////////////////////////////////////////////
// bytext dialog


bytext::bytext(CWnd* pParent /*=NULL*/)
	: CDialog(bytext::IDD, pParent)
{
	//{{AFX_DATA_INIT(bytext)
	m_task = _T("");
	//}}AFX_DATA_INIT
}


void bytext::DoDataExchange(CDataExchange* pDX)
{
	CWnd *p;
		              p=GetDlgItem(IDC_STATIC1);
					  char str[20];
					  strcpy(str,"任务");char num[4];
					  itoa(select_num+1,num,10);
					  strcat(str,num);
						  p->SetWindowText(str);
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(bytext)
	DDX_Text(pDX, IDC_EDIT1, m_task);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// bytext message handlers

⌨️ 快捷键说明

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