using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { /// <summary> /// 作者:it小金 /// 作用:数组的简单排序 /// </summary> class Program { static void Main(string[] args) { string[] aa = new string[5]; aa[0] = "e"; aa[1] = "b"; aa[2] = "c"; aa[3]="d"; aa[4]="a"; Array.Sort(aa); foreach (string b in aa) { Console.WriteLine(b); } Console.Read(); } } }
c#数组简单排序方法
最新推荐文章于 2024-10-16 21:44:20 发布
1万+

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



