my problem is : when I key in the first char ,It can not stored in char 'n',the second will. but I want to get the first char which I key in. what's wrong ?
I complied the code in micsoft vistual stdio 2005.
thanks Duoas, fflush() is wrong ,I guess the reason is that your complier is gcc . but it is real a bad ideas to use fflush(). The links you give is very useful.