// 22.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include#include using namespace std;struct node{ int data; int x; int y; int nx; int ny;}node[45];int _tmain(int argc, _TCHAR* argv[]){ const int NUM = 10; //定义点对的数目 int array[2][NUM]; const int n = NUM*(NUM-1)/2; int arrayDis[n]; int k = 0; srand(time(0)); //形成空间坐标 for (int i = 0;i