using System;
using System.Collections.Generic;
using System.Text;
namespace order
{
class Program
{
static void Main(string[] args)
{
int m=0;
int[] array = new int[m];
Console.WriteLine("@*****************欢迎进入排序系统******************");
Console.WriteLine("请输入要排序的数字个数:");
m = int.Parse(Console.ReadLine());
Console.WriteLine("请输入要排序的这{0}个数",m);
for (int i = 0; i < m; i++)
{
array[i] = int.Parse(Console.ReadLine());
}
foreach (int i in array)
Console.Write("\t{0}",array[i]);
}
}
}
这段程序里为啥用readkey()无法编译,而用readline()运行程序会出错?????