Lecture Practical C++ programming - Chapter 22: Exceptions

With exceptions, the error handling interface is much easier. The C++ throw command creates an expection that's handled by the catch block. The nice thing only the functions that does the throw and the one that catches it need to worry about the exception. All the other functions on the call stack don't have to worry about problems and don't have to pass error codes up the call stack.

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
27    70    2    15-05-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.