帮我看看为什么这段代码没有catch到除零的错误,只是系统报错
wiw 2007-07-18 02:54:47 #include "stdafx.h"
#include "windows.h"
int main(int argc, char* argv[])
{
__try
{
int a=0,b=10;
int c=b/a;
}
__except(GetExceptionCode()==EXCEPTION_FLT_DIVIDE_BY_ZERO)
{
printf("error");
}
return 0;
}