蛮力法解决旅行商问题VC6

时间:2021-07-03 10:17:15
【文件属性】:
文件名称:蛮力法解决旅行商问题VC6
文件大小:2KB
文件格式:TXT
更新时间:2021-07-03 10:17:15
“算法必考” 已经验证正确的自己写的代码。这是一部分 #include using namespace std; const int MAX_FLOAT_NUM=65535; static int count=0; static int cost=0; //临时存放路径费用 static int min=MAX_FLOAT_NUM; //最下路径的初始值 // //交换两个数 // void swap(int &x, int &y) { int temp; temp = x; x = y; y = temp; }

网友评论