当前位置: 首页 > 图文教程 > 网络编程 > ASP.NET > 把一个int数组的数字从小到大排列(C#)

ASP.NET
细细品味ASP.NET(一)
细细品味ASP.NET(二)
细细品味ASP.NET(三)
细细品味ASP.NET(四)
细细品味ASP.NET(五)
用asp.net和xml做的新闻更新系统(1)
用asp.net和xml做的新闻更新系统(2)
用asp.net和xml做的新闻更新系统(3)
十天学会ASP.net(1)
十天学会ASP.net(2)
十天学会ASP.net(3)
十天学会ASP.net(4)
十天学会ASP.net(5)
十天学会ASP.net(6)
十天学会ASP.net(7)
十天学会ASP.net(8)
十天学会ASP.net(9)
十天学会ASP.net(10)
ASP.NET创建XML Web服务全接触(1)
ASP.NET创建XML Web服务全接触(2)

ASP.NET 中的 把一个int数组的数字从小到大排列(C#)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 98 ::
收藏到网摘: n/a


using System;
namespace ConsoleApplication1{ /// /// Class1 的摘要说明。 /// class Class1 { /// /// 应用程序的主入口点。 /// [STAThread] static void Main(string[] args) { MinToMax mtm= new MinToMax(); int [] array = {1,2,6,3,8,3,4,0,5,23,52,12,234,235,1232,21,234,123,143,1368}; int[] last=mtm.MTM(array); int n=0; for(int i=0;i System.Console.ReadLine(); // // TODO: 在此处添加代码以启动应用程序 // } }
public class MinToMax { public int[] MTM(int [] array)
{ int[] FianlMTM= new int[array.Length]; for(int j=0;j } FianlMTM[array.Length-(j+1)]=last;
} return FianlMTM; } }}