环境:
vs2008
c++
现象:
运算溢出,调试时函数被跳过
相关代码段:
for(int i=0;i<18;i++)
{
//if(changed_motion(i))
//{
// continue;
//}
int e4=table_transport_edge4[edge4][i];
int c =table_transport_corner[corner][i];
int e8=table_transport_edge8[edge8][i];
int e4_c =e4*40320+c;
int e4_e8=e4*40320+e8;
int max=table_trun_edge4_corner[e4_c];
if(table_trun_edge4_edge8[e4_e8]>max)
{
max=table_trun_edge4_edge8[e4_e8];
}
if(max<min_deep)
{
min_deep=max;
}
}说明:
如果if语句解除注释,代码可以正常运行,否则,该段代码所在函数被跳出,
不明白为什么没有显示运行时错误。
难道其他地方有异常处理?
15万+

被折叠的 条评论
为什么被折叠?



