📜  int i =0 错误 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:20.887000             🧑  作者: Mango

代码示例1
void CCurrent::findPeaks()//this checks for peaks in the FFT
{
  int localPeakIndx[256]={};
  int j=0;
  for(int i=0;im_currentValues.AverageMagnitude*3) {
        localPeakIndx[j]=i;
        j++;
    }
  }
  //i should be out of scope
  int startIndx;
  int endIndx;
  int i = 0;//why does it equal 1024?????? debug*