⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpp08.cpp

📁 C++参考书
💻 CPP
字号:

// Coded by plusir -- Jan.09.2003.
// Standard C++ Bible -- (P513-17-8)

#include <iostream>
#include <stdexcept>
#include <typeinfo>
#include <string>
using namespace std ;

class Bummer : public runtime_error
{
	public:
		Bummer( void ) : runtime_error( "Bummer" ) { }
} ;

int main()
{
	try {
		throw Bummer() ;
	}
	catch ( exception &ex ) {
		cout << string( typeid( ex ).name() ).substr( 1 ) << endl ;
		cout << ex.what() << endl ;
	}

	return 0 ;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -