2013年9月29日

摘要: /*具体原理:从低位到高位对输入数据个位数字一次进行计数排序*/#include "stdafx.h"#includeusing namespace std;int Location_num(int in,int location){//求一个数的第location位数字int temp = 1;for(int i = 0;i -1;--i){out[--a[Location_num(in[i],location]] = in[i];}}int *Radix_sort(int *in,int length,int maxwidth){//基数排序实现int *Out = n 阅读全文
posted @ 2013-09-29 17:04 程序猿猿猿 阅读(147) 评论(0) 推荐(0) 编辑

导航