在外while循环中,我getchar放最上面吸收不了\n,但是放最下面可以
while((ch=getchar())!='N')m=那句放到第一个while里。
因为scanf("%d",&n)后面并没有getchar()啊