📄 citytour.h
字号:
#pragma CityTour
#include <Graphics.h>
/* This program implements the travelling salesperson problem.*/
/* The program uses simulated annealing to solve the problem. */
/* */
double RoundTrip (Coordinate &coord[], /*x-y positions*/
unsigned int &visitOrder[], /*output permutation vector*/
unsigned int nOFCities); /*number of cities*/
/* Finds the shortest round-trip path to NCITY cites whose coordinates are */
/* in the array coord. The array visitOrder(i) specifies the order in which */
/* the cities are visited. This routine will return the best alternative */
/* path it can find. */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -