/
githubmirror
/
CPlusPlusThings
Обзор
Документация
Войти
/
githubmirror
/
CPlusPlusThings
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
practical_exercises/10_day_practice/day9/exception/2.cpp
16 строк
390 B
zhangxing
support bazel complie this project and format code.
30 мар 2024, 17:00
30 мар 2024, 17:00
3c8a3f2
Код
Авторство
О чём код?
// Eg10-2.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 (double i) { //仅此与例10.1不同 cout << "4--In catch block1 .. an int type is.." << i << endl; } cout << "5--After Catch..."; return 0; }