#include <iostream> using namespace std;
void term_func()
{ cout << "term_func was called by terminate." << endl; exit( -1 ); }
int main()
{ try { set_terminate( term_func ); throw "Out of memory!"; // No catch handler for this exception } catch( int ) { cout << "Integer exception raised." << endl; }
return 0; }
'Dev > C++' 카테고리의 다른 글
boost 를 이용한 TR1 Library 사용하기 (0) | 2007.10.10 |
---|---|
VC++ 2005 배포 (0) | 2007.06.22 |
OutputDebugString (0) | 2007.05.23 |
C++0x (0) | 2007.05.16 |
GRETA (0) | 2007.05.14 |