Appendix A provides solutions for almost all of the exercises given at the end of each chapter. In the book, these do not use namespaces or the new library header names. However, here are all of the significant C++ code fragments from that appendix, converted to use the std namespace and the new library header names:
As a list
of the individual code fragments .
There are many examples of C++ code in the book. Here are some of the larger ones: