📄 global.h
字号:
#ifndef H_GLOBAL
#define H_GLOBAL
#pragma warning(disable:4786)
#define NOEVOLUTE 50
#define TOTALEVOLUTE 1000
#define CITYCOUNT 9
#include <set>
#include <vector>
#include <map>
#include <iostream>
#include <algorithm>
#include <fstream>
#include "time.h"
#include "math.h"
using namespace std;
typedef vector<int> VectorInt;
typedef VectorInt::iterator viter;
typedef map<int,int> MapInt;
typedef MapInt::iterator miter;
class Individual; //向前声明
class CityLayout;
class Group;
typedef vector<Individual> VectorIdv;
typedef VectorIdv::iterator vindviter;
extern CityLayout layout; //声明,不是定义,定义才分配内存空间的,让多个文件访问相同变量
#include "Individual.h"
#include "ityLayout.h"
#include "Group.h"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -