⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.cpp

📁 蚁群算法TSP模型的ant-cycle算法实现 尽可能少的采用STL
💻 CPP
字号:
#include "ant.h"
#include "city.h"
#include <ctime>
#include <iostream>
using namespace std;

//该版本有两个改进
//尽量少的采用STL 速度大大提升
//采用了类 在实际毕设中可以进行直接嵌入


int main()
{
	size_t begin(clock());
	city C;
	if(C.Init())
	C.Run();
	C.ShowShortestPath();
	size_t end(clock());
	cout<<"Running ..."<<(end-begin)<<"ms!"<<endl;
	return 0;
}

⌨️ 快捷键说明

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