例如:dim s() as string = {"我们","中国","中央","社会","集体"} 如何实现这个数组的汉字大小进行排序?谢谢!!
将它们写入一个表的某空列中,再用GetComboListString
以下是引用mr725在2010-2-9 23:58:00的发言:
将它们写入一个表的某空列中,再用GetComboListString
这个主意不错,我是用冒泡算法来实现的。
以下是引用lxl在2010-2-10 9:49:00的发言:
dim s() as string = {"我们","中国","中央","社会","集体"}
Dim ls As New List(Of String)
ls.AddRange(s)
ls.Sort
For Each a As String in ls
Output.Show(a)
Next
Output.Show("----------------------")
s = ls.ToArray
For Each a As String in s
Output.Show(a)
Next
原来还有更简单的,谢了!