Gotcha #2: Magic Numbers
Magic numbers, in the sense used here, are raw numeric literals used in contexts where named constants should be used instead:
class Portfolio {
// . . .
Contract *contracts_[10];
char id_[10];
};
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial