Update ex10_42.cpp