摘要: 1 #include <iostream> 2 using namespace std; 3 4 #define INFINITY 65536//无穷大 5 #define MAX_VERTEX_NUM 10//最大顶点个数 6 typedef enum{DG,DN,UDG,UDN}GraphKin 阅读全文
posted @ 2020-01-28 15:22 江雨牧 阅读(1024) 评论(0) 推荐(0)
摘要: 1 #include <iostream>、 2 using namespace std; 3 4 //插入排序 5 void insert_sort(int data[],int n) 6 { 7 int i, j,tmp; 8 for (int i = 1; i < n; i++)//进行n-1 阅读全文
posted @ 2020-01-28 10:31 江雨牧 阅读(127) 评论(0) 推荐(0)