Update ex5_10.cpp

The switch statemen more better.