日期:2014-05-17 浏览次数:20486 次
int[] Iday =null; for (int a = 0; a <= ehour; a++) { Iday[a] = shour; shour++; }
int[] Iday = new int[ehour+1]; for (int a = 0; a <= ehour; a++) { Iday[a] = shour; shour++; }
------解决方案--------------------
int[] Iday = null; for (int a = 0; a < Iday.Length; a++) { Iday[a] = shour; shour++; }