C++ Tutorial/Exceptions/standard exceptions — различия между версиями
Admin (обсуждение | вклад) м (1 версия: Импорт контента...) |
Admin (обсуждение | вклад) м (1 версия: Импорт контента...) |
(нет различий)
|
Текущая версия на 13:30, 25 мая 2010
standard exceptions
<source lang="cpp">#include <iostream.h>
- include <exception>
- include <typeinfo>
class A {}; int main () {
try { A * a = NULL; typeid (*a); } catch (std::exception& e) { cout << "Exception: " << e.what(); } return 0;
}</source>