|
Function orderStr(str As String) As StringDim s As StringDim j As LongDim n As Longs = Mid(str, 1, 1)For j = 1 To Len(str) If Mid(str, j, 1) < s Then s = Mid(str, j, 1): n = j &#39;计算最小值及其位置。Nextstr = s & Replace(str, s, &quot;&quot;,1, 1) &#39;排序orderStr = strEnd Function |
|
共 1 个关于本帖的回复 最后回复于 2013-7-4 12:30