Errata

C++ In a Nutshell

Errata for C++ In a Nutshell

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. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Printed
Page 152
6.1.3. Building the Preprocessor sample code; On the Safari version of this book the sample code

has two problems when you cut and paste.

There is a extra "" in this piece of sample code

float lat = float(data[LATITUDE]);
float lon = float(data[LONGITUDE]);

// Albers equal-area conic projection.
// USGS uses standard parallels at 45.5?N and 29.5?N
// with a central meridian value of 96?W.
// Latitude value is phi, longitude is lambda.

Anonymous   
Printed
Page 160
4th piece of sample code.; In Section 6.4 the following piece of sample code is missing a closing

"}"

void updateTyped( ) {
typedString = new String(typedChars, 0, typedCount);
typedPartials[typedCount] = int(typedString);
for (int j = typedCount-1; j > 0; --j) {
typedPartials[j] = typedPartials[j + 1] / 10;
}

foundCount = 0;
for (int i = 0; i < placeCount; i++) {
// Update boundaries of selection
// and identify whether a particular place is chosen.
places[i].check( );
}

Anonymous