Chapter 29
Ten Ways to Avoid Adding Bugs to Your Program
In This Chapter
Enabling all warnings and error messages
Using a clear and consistent coding style
Limiting the visibility
Adding comments to your code while you write it
Single-stepping every path at least once
Avoiding overloaded operators
Heap handling
Using exceptions to handle errors
Declaring destructors to be virtual
Avoiding multiple inheritance
In this chapter, I look at several ways to minimize errors, as well as ways ...
Get C++ For Dummies, 7th 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.