February 2022
Beginner
848 pages
22h 40m
English
This lesson teaches you how to deal with extraordinary situations that disrupt the flow of a program. The lessons thus far have mostly taken an exceedingly positive approach, assuming that memory allocations will succeed, files will be found, and so on. Reality doesn’t always work that way.
In this lesson, you learn
■ What an exception is
■ How to handle exceptions
■ How exception handling helps you deliver stable C++ applications
Say that a program allocates memory, reads and writes data, saves to a file—the works. It executes flawlessly on your awesome development environment, and you are proud of the fact that your application doesn’t leak a byte, though it manages a gigabyte! You ...
Read now
Unlock full access