int c;
while((c = getchar()) != '\n' && c != EOF);

 

相关文章: