wrote:
> just use fflush(stdin) to flush the input buffer so that it can show
> the prompt for the next character.
I can't believe we have had two suggestions in 24 hours that people use
undefined behavior. Please learn: "fflush() is not defined on input
streams."
We are told in the Lunyu (13.3) that Zilu put a silly claim to Kongzi.
Master Kong replied "How can you be so dense? Where an exemplary man is
ignorant, one should expect him to offer no opinion." This is a maxim
you should inscribe on your forehead. Or you could look up one of Dan
Pop's more colorful expressions of the same idea.