The answer of the C++ primer 5th