#define SQU(x) ((x)*(x))
.........
if(boo)
{
for(j=0;j<k;j++)
{
cout<<"k="<<k<<endl;
cout<<"result="<<result[j]<<endl;
}
for(j=0;j<k;j++) //我在这里设置断点,光标指向这的时候(执行到这的时候)总是报错"Unhandled //exception in TES.exe (NTDLL DLL):
{ //0x0000005:Access Violation"
t=result[j];
t=SQU(1.0/(1+2*t)-1)+8*SQU(t/(2+t))-1;
cout<<"f="<<t<<endl;
}
}
else {.....}
请问各位高手,这是哪错了?谢谢了!