Wrox Home  

Topic: C# and C++

Professional C++ (0764574841) cover image

Professional C++

Nicholas A. Solter, Scott J. Kleper
ISBN: 978-0-7645-7484-9
864 pages
January 2005
View Most Recent Edition of This Title
This title is out-of-print and not currently available for purchase from this site.

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
6 Error in Text
"Variables can be declared without being given a value. These undeclared variables ..."

Should read:
"Variables can be declared without being given a value. These uninitialized variables ..."
8 Error in Table
the table for the "=" Oparator, within the Usage column:

the first line:

int ;

should be:

int i;


The last line in the table should begin with |=
13 First sentence, Last Paragraph
Change the first sentence of the last paragraph in "The Ternary Operator" section on page 13 to read (adding the word "blocks"):

Unlike an if statement or a switch statement, the ternary operator doesn't execute code blocks based on the result.
14 Error in Text
In the last paragraph above "Loops", the text reads:

...will short-circuit after the second term because 1 always evaluates to true.
bool result = bool1 && 1 && (i > 7) && !done;

It should read:

...will short-circuit after the second term because 0 always evaluates to false.
bool result = bool1 && 0 && (i > 7) && !done;
21 Error in Punctuation
Section "String in C++":
"Hello, World."

should be:
"Hello, World".
25 Error in Code, Middle of Page
const float kVersionNumber = "2.0";

should be:

const float kVersionNumber = 2.0;
38 Error in Code
#include should be: #include
40 Error in Code
the second code segment, in the doFire function definition:
there is a begin brace ( { ) missing at line 12 in the code segment:

the code line:
} catch (std::exception ex)

should be:
} catch (std::exception ex) {
64 Error in Text
In the last paragraph, the third to the last sentence is missing a closing parenthesis, after the word "distinct".
65 Error in Text
line 10:

Text reads:
"tthat he programmer"

Should be:
"that the programmer".
131 Error in Text
Typo in 12th Last Line

"...are rigidly definedm,..."
should be:
"...are rigidly defined,..."
164 Error in Text
Under "Using Objects", 2nd paragraph:
"given blueprints"

should be:
"given set of blueprints"
181 Error in Text
In paragraph following second code snippet:

But now s1

should be:
But now s2
190 Error in Spreadsheet
the int mWidth and int mHeight of Spreadsheet s1 are currently 2 and 2 respectively.

they should be:
4 and 3 respectively after a shallow copy of s1 = s2.
193 Error in Code
code for copyFrom():
for (i = 0; i < mWidht; i++) {

should be:
for (i = 0; i < mWidth; i++) {
202 Typo
number of types

should be:
number or types
215 Error in Code
The method for arithmetic shorthand operator /= lacks the check for division by zero. The first code box should include:

if (rhs.mValue == 0) {



else {

set(mValue / rhs.mValue); // Call set to update mValue and mString }

return (*this);

220 Typo in 4th Last Line
"... object itself to the constructor..."

Should be

... object itself so the constructor..."
226 Typo in 3rd Last Line
"... data member of method were..."

Should be

"... data member or method were..."
10 255 Incorrect Behavior of the C++ Standard
It is incorrectly stated that you can change the signature of an inherited method by using a default argument. That behavior is not part of the C++ standard and the section implying so should be stricken from subsequent editions of the book.
256 Typo in 6th Last Line
"... the cases that are likely to encounter."

Should be

"... the cases that you are likely to encounter.
260 Error in Code
The last code snippet on page 260 is erroneous.

"Foo& myFooReferenceToBar;"

should be

"Foo& myFooReferenceToBar = myBar;"
273 Typo in 12th Line
"... definition might look like similar..."

Should be

"... definition might look similar..."
277 Error in Text
Line 21:

should be:
385 Typo in 9th Last Line
"... once. () is most commonly used..."

Should be

"... once. get() is most commonly used..."
385 Typo in Italicized Section
The italicized section describing the operators >> and << for streams has confused input stream and output stream.

The second and third sentences of the italicized section should read:

"In an output stream, << points toward the stream itself because data are being sent to the stream. In an input stream, >> points toward the variables because data are being stored."

The change is to swap "input" and "output" in the two sentences.
386 Inconsistent Format in function readName ()
function readName() while not incorrect is inconsistently formatted It should look like this:

string readName(istream& inStream)
    string name;
    char next;
    while (inStream.get(next)) {
        name += next;

    return name;
398 Typo in 4th Last Line
"...(usually named "en_U" to the..."

should be

"...(usually named "en_US" to the..."
400 Typo in 7th Last Line
"...even more important that the use..."

Should be

"...even more important than the use..."
413 Typo 6th Last Line
"...one had been throw originally."

Should be

"...one had been thrown originally."
418 Typo in 1st Line After Boxed Text
"..."first come, first served" basic."

Should be

> "..."first come, first served" basis."
424 Typo in 3rd Line
"...an example of funcTwo() using..."

Should be

"...an example of funcOne() using..."
519 Error in Code
The new added ObjectPoolTest::suite() method definition lack a {

It should read:

CppUnit::Test* ObjectPoolTest::suite()
640 Error in Text
Typo on the second line of page 640:

"Standrad Library Reference resource ..."

should be:

"Standard ..."
726 Error in Text
Typo on page 726, last sentence of the first paragraph

"... between different machine and applications."

should be:

"... machines and applications."
69 Error in Text
Minor typo (missing a space between two words).
In the table at the top of the page, the first sentence of the third bullet in the Is-A column reads "... hasone ..."

should be: "... has one ..."
Printer-Ready Version   Share This
With you wherever you go: pdf + ePub + kindle -- DRM-free