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

📄 inputvalue.cpp

📁 这是一个遗传算法
💻 CPP
字号:
// Inputvalue.cpp : implementation file
//

#include "stdafx.h"
#include "SGA for testing.h"
#include "Inputvalue.h"

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

/////////////////////////////////////////////////////////////////////////////
// CInputvalue

CInputvalue::CInputvalue()
{
}

CInputvalue::~CInputvalue()
{
}


BEGIN_MESSAGE_MAP(CInputvalue, CWnd)
	//{{AFX_MSG_MAP(CInputvalue)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// CInputvalue message handlers

void CInputvalue::OnOkcontinue()
{
/*	float val;
	cout<<"请输入-32759至32759之间的数字!";
	cin>>value;
	str=str.Left(str.Find("."));
    int ValueLength=str.GetLength();
	if(str.Find("-") || str.Find("+")) ValueLength-=1;
	
	if(abs((int)Value)>=32760 || ValueLength>5)
	{
        m_Value=-99999;			
		return;
	}
	sprintf((char*)m_pResult,"%f",m_Value);
*/
}

⌨️ 快捷键说明

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