The exercise of the C++Primer V5