stdafx.h

来自「一个有关生产排序的模拟退火算法」· C头文件 代码 · 共 61 行

H
61
字号
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__69AA200C_645B_4F90_991F_E9C63EF9FC6F__INCLUDED_)
#define AFX_STDAFX_H__69AA200C_645B_4F90_991F_E9C63EF9FC6F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdisp.h>        // MFC Automation classes
#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#include "sacode.h"

extern std::vector<SYCity> vecCitys;  //容器类储存坐标信息
extern std::vector<SYCityDistance> vecCityDistances;//容器类储存城市之间距离信息
extern std::vector<Hardpanish> vecHardpanish;
extern std::vector<WidethpanishP> vecWidethpanishP;
extern std::vector<WidethpanishN> vecWidethpanishN;
extern std::vector<Gaugepanish> vecGaugepanish;
extern std::vector<int> vecCityRouter;  //容器类储路径信息

extern int CityNumber;
extern double InitialTemperature;
extern double NowTemperature;
extern int	NowExternalIterNumber;
extern int NowInnerIterNumber;

void InitialSA();
void ClearSA();
void CreateCityRouter( CityRouterDef &CityRouter );
void CreateCityRouter2opt( CityRouterDef &preCityRouter, CityRouterDef &CityRouter );
double CountTotalDistance( CityRouterDef &CityRouter );
double CountCityDistance( SYCity &FromCity, SYCity &ToCity, SYCityDistance &CityDistance );
double FindCityDistance( int FromCityIndex, int ToCityIndex );
double CountInitialTemperatureMaxMin( double maxdis, double mindis, int rate );
double CountDownTemperature( double nowtemp, int DownMode );

BOOL JudgeOverInnerLoop( int JudgeMode );
BOOL JudgeOverExternalLoop( int JudgeMode );
CString FormRouterString( SYRouter &CityRouter );
UINT SACompution(LPVOID pParam);
void GetRouterFileString( SYRouter &CityRouter, CString &strTemp );


#define WYWM_INFOVIEWAPPENDINFO		(WM_USER + 1000)
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__69AA200C_645B_4F90_991F_E9C63EF9FC6F__INCLUDED_)

⌨️ 快捷键说明

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