initialdistribute.cpp

来自「遗传自适应算法的源代码」· C++ 代码 · 共 44 行

CPP
44
字号
// initialdistribute.cpp: implementation of the initialdistribute class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "2level.h"
#include "initialdistribute.h"

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

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

initialdistribute::initialdistribute()
{

}

initialdistribute::~initialdistribute()
{

}
double *initialdistribute::distribute(double H,double h,int m,double B)
{
	
	double *p;
	double m_h[5];
	m_h[0]=3.29;
	m_h[1]=2.47;
	m_h[2]=1.93;
	m_h[3]=1.58;
	m_h[4]=1.5;

	p=&m_h[0];
	return p;


}

⌨️ 快捷键说明

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