fixed ex5_17.cpp
Merge pull request #59 from pezy/upstream

fixed a bug for ex5_17.cpp