add Exercise23-7.cpp