problem.cpp

来自「一个用于JSP神经网络的演示软件」· C++ 代码 · 共 56 行

CPP
56
字号
// Problem.cpp : implementation file
//

#include "stdafx.h"
#include "JSPSolution.h"
#include "Problem.h"

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

/////////////////////////////////////////////////////////////////////////////
// CProblem dialog


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


void CProblem::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CProblem)
	DDX_Text(pDX, IDC_FileAddr, m_fileAddr);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CProblem, CDialog)
	//{{AFX_MSG_MAP(CProblem)
	ON_BN_CLICKED(IDC_Browse, OnBrowse)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CProblem message handlers

void CProblem::OnBrowse() 
{
	CFileDialog fi(true);
	int res = fi.DoModal();
	if (res == IDOK)
	{
		CString path = fi.GetPathName();
		m_fileAddr = path;
	}		
	UpdateData(false);
}

⌨️ 快捷键说明

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