/* The Bubble Sort */

void Bubble(char *items, int count)
{
register int a,b;
register char t;

for(a=1;a<count;a++)
for(b=count-1;b>=a;b--)
if(items[b]<items[b-1])
{
t=items[b];
items[b]=items[b-1];
items[b-1]=t;
}
}


void Bubble(char *items, int count)
{
register int a,b;
register char t;
for(a=1;a<count;a++)
for(b=count-1;b>=a;b--)
if(items[b]<items[b-1])
{
t=items[b];
items[b]=items[b-1];
items[b-1]=t;
}
}


浙公网安备 33010602011771号