utils.h

来自「使用遗传算法和蚁群算法解决TSP问题」· C头文件 代码 · 共 32 行

H
32
字号
#pragma once
#include "Color.h"
//#include "AutoFont.h"
#include <math.h>
#include "PerfTimer.h"
#include "AutoFont.h"


int	  RandomInteger(int x,int y);
double RandomFloat();
bool   RandBool();


enum ViewMode{vmTour,vmGraph,vmAll};
enum PlotMode {pmCircular,pmRandom};

class CGlobals
{
public:
	
	static int WIN_WIDTH;
	static int WIN_HEIGHT;	
	static CPerfTimer TIMER;
	static long INFINITY;
	static double EPSILON;
	static double PI;
};

extern CAutoFont gFont;
//extern CPerfTimer Timer;

⌨️ 快捷键说明

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