Mega Code Archive
Categories
/
C++ Tutorial
/
Exceptions
Standard exceptions
#include
#include
#include
class A {}; int main () { try { A * a = NULL; typeid (*a); } catch (std::exception& e) { cout << "Exception: " << e.what(); } return 0; }