#include using namespace std; class Foo { public: int a; Foo ( void ); ~Foo ( void ); }; Foo::Foo ( void ) { a = 1; } Foo::~Foo ( void ) { try { if ( 1 == a ) { throw 0; } } catch ( int e ) //遵循1 { //...... } } int main ( void ) { try { Foo f; } catch ( int e ) { //...... } return ( 0 ); }