13307130254_LIANGYONGQING_Assignment5

Finish assignment5. Very sad to finish p2.cpp until 19:50. p2.cpp has some comments for easy reading.
 num = getNumber(&i);
这样就可以省掉后面的while语句去