Big C++/Brief C++ 3rd Edition

Bug Report Page

Exercise R4.1c
Add i++; below else { cout << stripes << endl; }
Exercise R4.2a
Change cout << i + " " + j to cout << i << " " << j
Exercise R4.2b
Change j++; to j--;
How To 5.1 Step 6
Change
cout << "Expected: 300";
to
cout << "Expected: 300" << endl;
Section 5.10
In the program fragment at the very end, change
for (int j = 0; j < i; j++)
to
for (int j = 0; j <= i; j++)
Programming Tip 6.2
Change “For a beginner, the sole advantage of an array is the initialization syntax.” to “Before C++ 11, some programmers chose arrays because vectors did not have a convenient initialization syntax.”
Special Topic 6.5
Change “The range-based for loop also works for arrays:” to “The range-based for loop also works for arrays whose size is known at compile-time:”
Exercise E6.9
Change “two vectors” to “two arrays”
Section 8.5
Change “Here argc is the count of arguments, and argv contains the values of the arguments.” to “The argv array contains the program name and command-line arguments, and argc is the length of the array.”
Chapter 10 Interactive Review and Practice | Chapter Review Problem 7
Remove the } under the definition of the Player class. Change
{
   _______________________
to
   : _______________________
{

Problem P14.10
Change “append the instructions to a string” to “push the reverse Polish fragment onto a stack of strings”
Section 15.2 Table 2
In row 5, remove int n2 = scores.at("Diana"); and replace “or a default (zero for integers) if the key is not present, without adding the key to the map.” with “. An exception occurs if the key is not present.”
Worked Example 16.2
In the description and in treedemo.cpp, change
int populate(RedBlackTree t)
to
int populate(RedBlackTree& t)

Thanks to Cindy Johnson, Christopher Painter-Wakefield, Anthony Rutledge, David Topham, Lee Wittenberg, Kyle Ziegler, and (your name might go here) for their bug reports and suggestions.

Bug Report Form

Please use this form to report any bugs that you find. Please check the list of known bugs first before you report a bug. Unfortunately, I do not have the time to respond personally to every report, but I do read them all and will post updates to this page. Thank you!

Your name:

Your email address:

Page number:

Problem description:

To protect against spam robots, please answer this simple math problem:
* =