2013年6月30日
摘要: //程序中缺少的结构、函数请在上一篇博客里查找#define MAXSIZE 20000/************************************************************************//* 希尔排序 *//************************************************************************/void shellSort(SqList *pL){int i,j;int step; //步长 int temp;step = pL... 阅读全文
posted @ 2013-06-30 16:54 转身的老虎 阅读(346) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #define MAXSIZE 10000typedef struct{ int r[MAXSIZE + 1];int length;} SqList;void swap(SqList *pL,int i,int j){int temp = 0;temp = pL->r[i];pL->r[i] = pL->r[j];pL->r[j] = temp;}void putOut(SqList *pL){int i;for(i=0;ilength;i++){printf( 阅读全文
posted @ 2013-06-30 16:50 转身的老虎 阅读(752) 评论(0) 推荐(0) 编辑