Update ex5_17.cpp

Before it will always output the"ture"