📄 solution.h
字号:
// Solution.h: interface for the CSolution class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SOLUTION_H__A7EBF422_CDFA_4B70_B6EF_E90F42A3FC25__INCLUDED_)
#define AFX_SOLUTION_H__A7EBF422_CDFA_4B70_B6EF_E90F42A3FC25__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "afxtempl.h"
class CSolution
{
public:
void preDelete();
VOID ResetFitness();
CSolution(CSolution &);
static int OBJectiveNum;
static BOOL ChangeTypePolicy;
static int GetGeneLength();
static void SetGeneLength(int mLength);
CSolution(BOOL WillInit);
void Copy (CSolution *p_Temp);
// CSolution& operator= (CSolution &p_Temp);
CSolution();
virtual ~CSolution();
int type; //细胞的类型
void Init();
float *Objective;
float *Gene;
double Distance;
double Slope;
char Key[128];
private:
static int st_iGeneLength;
};
#endif // !defined(AFX_SOLUTION_H__A7EBF422_CDFA_4B70_B6EF_E90F42A3FC25__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -