/
githubmirror
/
CPlusPlusThings
Обзор
Документация
Войти
/
githubmirror
/
CPlusPlusThings
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
practical_exercises/10_day_practice/day9/exception/1.cpp
17 строк
456 B
zhangxing
support bazel complie this project and format code.
30 мар 2024, 17:00
30 мар 2024, 17:00
3c8a3f2
Код
Авторство
О чём код?
// Eg10-1.cpp #include <iostream> using namespace std; int main() { cout << "1--befroe try block..." << endl; try { cout << "2--Inside try block..." << endl; throw 10; cout << "3--After throw ...." << endl; } catch (int i) { cout << "4--In catch block1 ... exception..errcode is.." << i << endl; } catch (char *s) { cout << "5--In catch block2 ... exception..errcode is.." << s << endl; } cout << "6--After Catch..."; }