?? airportdepview.h
字號(hào):
// AirportDepView.h : interface of the CAirportDepView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_AIRPORTDEPVIEW_H__4472DE3E_D427_4F6B_824B_8646528224FE__INCLUDED_)
#define AFX_AIRPORTDEPVIEW_H__4472DE3E_D427_4F6B_824B_8646528224FE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Flight.h"
#include "Airport.h"
class CAirportDepView : public CScrollView
{
protected: // create from serialization only
CAirportDepView();
DECLARE_DYNCREATE(CAirportDepView)
// Attributes
public:
CAirportDepDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAirportDepView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
void SetBacter(); //妥協(xié)方法接種疫苗(疫苗取自代理理想點(diǎn))
bool CompareFlightNum(Flight f1,Flight f2); //比較航班號(hào)
void doOneGenerationModified(); //修改一代種群
void cross(int toCross, int toMute); //選擇一些種群進(jìn)行交叉操作
Airport cross2Group(Airport g1,Airport g2); //交叉兩個(gè)種群
void Clone(Airport g,Airport & newAirport); //克隆父代
void mute(int toCross, int toMute); //選擇一些種群進(jìn)行變異操作
void eliminate(int toCross, int toMute); //保證種群中的相鄰代機(jī)場(chǎng)航班延誤時(shí)間段數(shù)不同
void sort();
void OutAirport(Airport air);
virtual ~CAirportDepView();
void Generate_Airport(); //初始化所有代的機(jī)場(chǎng)種群
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CAirportDepView)
afx_msg void OnAirportdep();
afx_msg void OnGA();
afx_msg void OnAirportArr();
afx_msg void OnCIA();
afx_msg void OnFCFS();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CPoint m_ptOrigin; //光標(biāo)
CStringArray m_strPath; //存放字符串
CStringArray m_strArray; //存放字符串
vector<Airport> airport;
int MUTE_FACTOR; //變異因子
int CROSS_FACTOR; //交叉因子
int population; //最大種群數(shù)
};
#ifndef _DEBUG // debug version in AirportDepView.cpp
inline CAirportDepDoc* CAirportDepView::GetDocument()
{ return (CAirportDepDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_AIRPORTDEPVIEW_H__4472DE3E_D427_4F6B_824B_8646528224FE__INCLUDED_)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -