exercise

来源:互联网 发布:linux redhat 编辑:程序博客网 时间:2024/05/01 14:50

#include "stdafx.h"#include<iostream>using namespace std;void perverted(){try{throw exception();   // recursive exception throw}catch(exception& e){perverted();          // recursive function callcout<< e.what();      // unknown exception, actually}}int _tmain(int argc, _TCHAR* argv[]){perverted();return 0;}

exception thrown:


原创粉丝点击