Fixed ex12.26.cpp