Advertisement
Membership
Login
ACCU Buttons
Search in Book Reviews
Search is a simple string search in either book title or book author. The full text search is a search of the text of the review.
However one consequence of the poor example that MFC sets is that we have authors writing chapters aiming to give the reader a grasp of C++ (though how you can expect to do this in 42 pages defeats me) that include such a multitude of flaws that I have not space to enumerate them. However, just as an example, the author defines a class
SchoolClasswith two data members:
int *ClassDataand
int ClassDataIndex. The former is initialised (in the body of the constructor) to a dynamic array and the latter is initialised to zero. What tracks the size of the array? Different member functions change
ClassDataIndex. At least one uses it to limit the execution of a loop. Another increments it (much of the problem of global data in a microcosm). The destructor uses the wrong
delete. There is no declaration of a copy constructor nor of a copy assignment.
I would not employ a programmer who wrote such poor C++, and I would not encourage you to read books from authors whose basic C++ source code is so poor. A professional in any area must be able to get the fundamentals right.
Maybe the rest of the book is an excellent exposition of using Visual C++ 5 to produce Windows applications, but that is like expecting palaces built on foundations of sand. Even Herbert Schildt at his worst writes better code than this.