void bubble(char *items, int count)
...{
register int i, j;
register char t;
for(i = 1; i < count; ++i)
for( j = count-1; j >= i; --j) ...{
if(items[j - 1] > items[ j ]) ...{
/**//* exchange elements */
t = items[j - 1];
items[j - 1] = items[ j ];
items[ j ] = t;
}
}
}
6398

被折叠的 条评论
为什么被折叠?



