Errata

Introducing C++

Errata for Introducing C++

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 Note Update

Version Location Description Submitted by Date submitted
PDF Page page 251
Last paragraph

It says "For completeness, add a test creating an Exchange with an asset:"
It might be useful to say
"For completeness, add a test creating an Exchange with an asset in the
stock_prices::test_trades() function in trade.cpp:"

Frances Buontempo  Apr 03, 2026 
PDF Page 1
2nd paragraph

Where it says "The output Lis interpreted by a virtual machine", it should read "The output is interpreted by a virtual machine".

Thiago Pimentel  Mar 19, 2026 
PDF Page 15
1st paragraph

Where it reads "which I’ll go into more in the next chapter," it would be clearer to say "which I’ll go into more detail (or depth) in the next chapter."

Thiago Pimentel  Mar 26, 2026 
PDF Page 218
Code listing

The constructor says
gen(std::random_device{}())

However, that is initialized in place in the header on the previous page, so isn't needed

Frances Buontempo  Mar 24, 2026 
PDF Page 261
Code near end of page

Two functions are shown:
void fulfill_buy_order()
{
--number_of_assets;
funds += asset->get_price();
}

void fulfill_sell_order()
{
++number_of_assets;
funds -= asset->get_price();
}

It would be useful to say to put them inside the Exchange class definition in the trade.h header.

Frances Buontempo  Apr 03, 2026