以下の内容はhttps://so-wh.at/entry/20080527/p4より取得しました。


terminateとunexpected

#include <iostream>
using namespace std;

void func() throw(int) {
  throw 0L;
}

void uhandler() {
  cout << "uhandler()" << endl;
}

void thandler() {
  cout << "thandler()" << endl;
  exit(1);
}

int main() {
  set_unexpected(uhandler);
  set_terminate(thandler);
  func();
}
VC


thandler()
続行するには何かキーを押してください . . .

g++


$ g++ -g foo.cpp -o foo && ./foo
uhandler()
thandler()




以上の内容はhttps://so-wh.at/entry/20080527/p4より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14