我爱Aspx >> C#.Net >> out 数组总是提示有些路竟没有赋值{
stepArray[i] = step;
step -= stepWidth;
++i;
}
stepArray[i] = stopWavelength;
}
else
{
stepArray = new double[0];
throw new Exception("The value between start and stop is less than step width.");
}
}
else
{
stepArray = new double[0];
throw new Exception("The start and stop point are equal");
}
}
第2楼. 由 Nick_Nick 于 2007-6-7 11:31:19 发表
out的参数可能传进来的是null
所以你要先new一个
如果你传进来的事已经new好的数组,用ref代替out
第3楼. 由 paulbin 于 2007-6-7 11:38:09 发表
但是我不确定数组的大小
怎么new呢
第4楼. 由 Nick_Nick 于 2007-6-7 11:40:32 发表
2003用arraylist,2005用list<T>
第5楼. 由 paulbin 于 2007-6-7 11:40:57 发表
private void CalculateSteps( int startWavelength, int stopWavelength, int stepWidth, out int[] stepArray )
{
int i = 0, remainder = 0, quotient = 0;
Ҷƪл˵?
在google上面搜到下面的微软的地..[06-12]
请问:gtk有哪些信息啊,delete_..[06-12]
如何实现操作不被其他进程打断?[06-12]
gcc 能编译 c++ 吗[06-12]
关于DataSet中表格的RowIndex的问..[06-12]
如何实现PNG图片变色?[06-12]
请问,WIN程序,全选更新到数据库..[06-12]
access报错操作必须使用一个可更..[06-12]
帮我看看这样算不算装上 framewo..[06-12]
关于一个截取字符串问题[06-12]