Update ex12.26.cpp