Lesson 28. Exception Handling

The title says it all: dealing with extraordinary situations that disrupt the flow of your 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 is often different.

In this lesson, you learn

Image What is an exception

Image How to handle exceptions

Image How exception handling helps you deliver stable C++ applications

Get Sams Teach Yourself C++ in One Hour a Day, Eighth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.