oding.h
来自「c++语言实现的遗传算法的例子,需要的快下啊」· C头文件 代码 · 共 29 行
H
29 行
// oding.h: interface for the Coding class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_ODING_H__72D698EF_AD52_4F3E_87BC_C04BFCFC4141__INCLUDED_)
#define AFX_ODING_H__72D698EF_AD52_4F3E_87BC_C04BFCFC4141__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Assistant.h"
class Coding
{
public:
Coding(double,double,int,Rand *);
virtual double * Code()=0;
virtual double * Decode(double *)=0;
virtual ~Coding();
protected:
double loc_min;
double loc_max;
int dimension;
Rand * rand;
};
#endif // !defined(AFX_ODING_H__72D698EF_AD52_4F3E_87BC_C04BFCFC4141__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?