the exercise of C++  Primer