现在的位置: 首页 > 综合 > 正文

exercise

2017年12月28日 ⁄ 综合 ⁄ 共 285字 ⁄ 字号 评论关闭
#include "stdafx.h"
#include<iostream>
using namespace std;
void perverted()
{
	try
	{
		throw exception();   // recursive exception throw
	}
	catch(exception& e)
	{
		perverted();          // recursive function call
		cout<< e.what();      // unknown exception, actually
	}
}
int _tmain(int argc, _TCHAR* argv[])
{
	perverted();
	return 0;
}

exception thrown:

【上篇】
【下篇】

抱歉!评论已关闭.