char* SortStr(char* str)
{
int len = strlen(str);
int i,j;
short c;
for (i=1; i<len; ++i)
{
c = str[i];
for(j=i-1; j>=0; --j)
{
if(c<str[j])
str[j+1] = str[j];
else break;
}
str[j+1] = c;
}
return str;
}
TMD,被我理解为对多组字符串排序!