Hour 24. Exceptions and Error Handling

The code you've seen in this book was created for illustration purposes. It has not dealt with errors, so that you will not be distracted from the central issues being presented. Real-world programs, on the other hand, must take error conditions into consideration. In fact, in real-world programs, anticipating and handling errors can be the largest part of the code!

In this final hour, you will learn

  • What exceptions are

  • How exceptions are used and what issues they raise

  • How to create bug-free code

  • Where to go from here

Get Sams Teach Yourself C++ in 24 Hours, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.