• λ我爱Aspx >> C#.Net >> out 数组总是提示有些路竟没有赋值
  • out 数组总是提示有些路竟没有赋值

  • :aspxer  Դ:csdn  :2007-6-12 3:43:37  ؼ:
  • private void CalculateSteps( double startWavelength, double stopWavelength, double stepWidth, out double[] stepArray )

    {

    if(startWavelength < stopWavelength)

    {

    if((stopWavelength - startWavelength) > stepWidth)

    {

    int i = 0;double step = startWavelength;

    do

    {

    stepArray[i] = step; //就这一句

    step += stepWidth;

    ++i;

    }

    while((stopWavelength - step) > stepWidth);

    stepArray[i] = stopWavelength;

    }

    else

    {

    stepArray = new double[0];

    throw new Exception("The value between start and stop is less than step width.");

    }

    }

    else if(startWavelength > stopWavelength)

    {

    if((startWavelength - stopWavelength) > stepWidth)

    {

    int i = 0;double step = startWavelength;

    while((step - stopWavelength) > stepWidth)

    Ҷƪл˵?
  • һƪ高薪诚聘有经验的PHP程序员(深圳)
    һƪ在google上面搜到下面的微软的地址,可是看不了