请问:
printf("please enter an int:");
while(scanf("%d",&n)!=1){ while(getchar()!='\n'); printf("input incorrect.an int again");
}
for(i=0;i<n,++i)……
中的“while(getchar()!='\n');”是什么意思?里面的“getchar()”指的是n的编码值还是程序另外要求输入的字符编码值?
If I can find the answer in the books,I should not ask for help at here.I am learning this programming by myself,so I must ask others for help when I have answers.