求问题

void terminator()
{
 cout << "I'll be back!" << endl;
 abort();
}

void(*old_terminate)() = set_terminate(terminator);

class botch
{
public:
 
 class fruit{};
 void f()
 {
  cout << "botch::f()" <<endl;

  throw fruit();

 }
 ~botch()
 {
  throw 'c';
 }
};int main(int argc, char* argv[])
{
 try
 {
  botch b;
  b.f();
 }
 catch(...)
 {
  cout << "inside catch(...)" << endl;
 }
 system("pause()");
 return 0;
}

Debug Error

This application has requested the Runtime it in an unusual way.

Please contact the application's support team for more information

(Press Retry to debug the application)

 

你可能感兴趣的:(请大神帮忙)