Update HW7_2.cpp

show the append buy using cout point not while loop