任意个数的排序问题
live41注:以后发帖请注意标题
using System;
class ordernum
{
static void Main()
{
Console.WriteLine("How many number you want to put !");
int a =int.Parse(Console.ReadLine());
int[] c=new int[a];
for (int b=0;b<a;b++)
{
Console.WriteLine("Input a number!");
c[b]=int.Parse(Console.ReadLine());
}
for (int b=0;b<a;b++)
{
Console.Write("{0}"+" ",c[b]);
}
Console.WriteLine();
}
}
看见没有,输入任意个数,我倒会,但是怎样让他们排序呢?
谁能告诉我呀
谢谢了?
[此贴子已经被live41于2005-4-3 1:54:18编辑过]