我有以下代码:
public int[] _SpDep = new int[50];
public int[][] _SpDepCnt = new int[50][];
public int[][] _SpReadType = new int[50][];
_DepNo = Convert.ToInt16(strFileName[n].Substring(1, 2));
_CntNo = Convert.ToInt16(strFileName[n].Substring(6, 2));
_SpDep[_DepNo] = 1;
_SpDepCnt[_DepNo][_CntNo] = 1;
_SpReadType[_DepNo][_CntNo] = 1;
到达此行时出现错误:
_SpDepCnt[_DepNo][_CntNo] = 1;
但是不知道怎么回事?有什么意见吗?是不是2d array
申报错了?