O'Reilly logo

C++ For Dummies, 7th Edition by Stephen R. Davis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 29

Ten Ways to Avoid Adding Bugs to Your Program

In This Chapter

arrow Enabling all warnings and error messages

arrow Using a clear and consistent coding style

arrow Limiting the visibility

arrow Adding comments to your code while you write it

arrow Single-stepping every path at least once

arrow Avoiding overloaded operators

arrow Heap handling

arrow Using exceptions to handle errors

arrow Declaring destructors to be virtual

arrow Avoiding multiple inheritance

In this chapter, I look at several ways to minimize errors, as well as ways ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required