modified:   ex3_17.cpp