#include #include void ShellSort(int a[],int n) { int i,j,temp,in,key; in = n; while(in>1) { in=in/3+1; for(i=in;i=0) { if(key 分享文章:希尔排序(减少增量值) 分享地址:http://chengdu.cdxwcx.cn/article/iiiicg.html