摘要:
1.将整数转换为数组 如123456转换成 {0,0,0,0,1,2,3,4,5,6},数组长度根据数据规模自己决定 2.按乘法规则将数组元素按位相乘 3.迭代乘法 4.main函数测试 阅读全文
摘要:
ElementType ShellSort( ElementType A[], int N ) { for(int h=N/2;h>0;h/=3){ for(int i=h;i=0&&A[j]>key;j-=h) A[j+h]=A[j]; A[j+h]=key; } } } ElementTy... 阅读全文