Errata


Print Print Icon

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.


Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question



Version Location Description Submitted By
Printed Page 21
2nd example code

On the 2nd and 3rd comment lines, global1 should read global2 and global3
respectively.

Anonymous 
Printed Page 37
"Other Class Members" box

Not an "error" but an important omission, and it may just be a Microsoft variation,
but here goes:

In Microsoft Visual C, a static variable declared in a class must also be declared at
file scope, outside the class declaration. Also, if it is going to be initialized to
some value, it can only be initialized at file scope.

So the declaration would be:

class Foo {
public:
...
static int staticDataMem;
...
};

int Foo::staticDataMem; // File scope declaration
/* or
int Foo::staticDataMem = 3;
*/

I spent a little time pulling my hair out until I found this in Microsoft
documentation.

Anonymous 
Printed Page 49
3rd Sentence of 2nd Paragraph

If we implemented IntStack with a linked list, the iterator would contain a pointer to the current element "instead of a count"

This should read "instead of an index of the current item in the stack".

The book provides a very good approach to learning the language. I have found it to be very useful in gaining clear and concise insight into the basic structure of the language. Beginning with a knowledge of the "C" programming language, it offers a very efficient elaboration of the most pertinent details, (of C++) from which more
detailed study can form its basis. Of all the books reviewed, this book permits C++ to be understood the most quickly. I really needed a book such as this one so that I can form the basic categories to store the huge amount of details associated with learning this language.
Great Job !!!

Anonymous 
Printed Page 49
second to last line on page

I am a new C++ student. I believe that there is a typo here
I am wondering if this line should be changed

From: return iterStack->items.getElem(curItem);

To: return IntStack->item.getElem(curItem);

I could not find any reference to iterStack as a class
in this section of text.

The corrected line identifies the getElem() as a member function (pg44) for the
object, item, of type IntArray (pg 41) which is a private data member of the IntStack
class (pg 47).

Anonymous