菜鸟问题,数据读入数组出错!!!
int[]   num=null; 
 for   (int   i   =   0;   i    <   9;   i++) 
 { 
             Console.WriteLine( "Enter   the- "+i+ "-Num: "); 
             num[i]=Convert.ToInt32(Console.ReadLine()); 
 }   
 错误,未将对象引用到实例??   
 请高手帮忙看看////
------解决方案--------------------int[] num=null; 
 num = new int[9];
------解决方案--------------------int[] num=null;   
 …………   
 int[] num = new int [10];