chapter 13, C++