📄 reaper.h
字号:
// Reaper.h: interface for the Reaper class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_REAPER_H__82C5F8C8_3CF1_11D2_AF8F_000000000000__INCLUDED_)
#define AFX_REAPER_H__82C5F8C8_3CF1_11D2_AF8F_000000000000__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "../copyright.h" // Added 000323 by Aleksander 豩rn.
#include "AbstractOperation.h"
#include "Stats.h"
class Reaper : public AbstractOperation
{
int nu;
int mu;
int maxLT;
int minLT;
Stats stats;
public:
int setAge(double fitness, double avgFit, double minFit, double maxFit);
Reaper(int min = 1, int max = 6);
Population & apply(Population &p, int generation = 0);
virtual ~Reaper();
};
#endif // !defined(AFX_REAPER_H__82C5F8C8_3CF1_11D2_AF8F_000000000000__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -