#define n 待排序記錄的個數
typedef struct
{ int key[d]; //關鍵字由d個分量組成
int next; //靜態鏈域
AnyType other; //記錄的其它數據域
} SLRecType;
SLRecType R[n+
typedef struct
{ int f
} SLQueue;
SLQueue B[m] //用隊列表示桶
int RadixSort(SLRecType R[]
{ //對R[
for(i=
R[n]
for(j=d
{for(i=
while(p!=
{ k=R[p]
if(B[k]
else R[B[k]
B[k]
p=R[p]
}//while
i=
while(B[i]
t=B[i]
while(i<m
{i++;
if(B[i]
}//while
R[t]
}//for
return p;
}//RadixSort
[
From:http://tw.wingwit.com/Article/program/sjjg/201311/23167.html