歸併排序算法

#include<stdio.h> #include<stdlib.h> #include<time.h> //排序用到的結構和函數 #define MAXSIZE 20 typedef struct { int r[MAXSIZE+1]; //用於存儲要排序的數組,r[0]用做哨兵或者臨時變量 int length; //用於記錄順序表的長度 }SqList; //交換L中
相關文章
相關標籤/搜索