void myterminate ()
{
cout << "terminate handler called";
}
int main (void)
{
set_terminate (myterminate);
throw; // throwing an exception. So, terminate handler should be invoked
// as no one is handling this exception.
getch();
return 0;
}
しかし、このコードを実行した後の出力は次のとおりです。
+ "Debug Error!" と呼ばれるハンドラを終了します。ダイアログボックスが表示されます。
なんでこうなるのかわからない!!!!助けてください。