![]() |
![]() |
" "
” to “An empty string literal is represented as ""
”floor
is not set. Instead” to “then the integer variable floor
is set to 0. (Prior to C++ 11 it was left unchanged.) Moreover”cin >> value
left value
unchanged on input failure. Use this replacement.i++;
below else { cout << stripes << endl; }
cout << i + " " + j
to cout << i << " " << j
j++;
to j--;
cout << "Expected: 300";to
cout << "Expected: 300" << endl;
void withdraw(double& balance, double amount, bool success)to
void withdraw(double& balance, double amount, bool& success)
for (int j = 0; j < i; j++)to
for (int j = 0; j <= i; j++)
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.”string get_id() const
to int get_id() const
(2×)}
under the definition of the Player
class. Change
{ _______________________to
: _______________________ {
quiz.add(q);
to quiz.add_question(q);
ostream
, and not an ostream
object. ” to “Note that the return type is a reference to istream
, and not an istream
object. ”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.”question_tree_demo.cpp
BinaryTree
. The correct declaration should be
BinaryTree question_tree( "Is it a mammal?", BinaryTree("Does it have stripes?", BinaryTree("Is it a carnivore?", BinaryTree("It is a tiger."), BinaryTree("It is a zebra.")), BinaryTree("It is a pig.")), BinaryTree("Does it fly?", BinaryTree("It is an eagle."), BinaryTree("Does it swim?", BinaryTree("It is a penguin."), BinaryTree("It is an ostrich."))));
Tree
with Node
(2x) and change
root.insert_node(new_node)to
root->insert_node(new_node)
treedemo.cpp
, change
int populate(RedBlackTree t)to
int populate(RedBlackTree& t)
Thanks to Doug Case, Doumas Georgios, Stephen Gilbert, Cindy Johnson, Alex Lin, Ohlone CS 124-01 S2022, Christopher Painter-Wakefield, Anthony Rutledge, Dan Tecu, David Topham, Lee Wittenberg, Kyle Ziegler, and (your name might go here) for their bug reports and suggestions.
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!