Update horong54.cpp

remove code redundancy.