#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: