第一个scanf, 改一下, scanf("%d ", &n); 尾巴多一个空白.当多重使用scanf, 会有Enter输入的异常现象. (Enter於Windows为 \r, \n 双字元, 会残留)