Re: correct way to use getchar function?
- From: ashish rohtagi <ashishrohtagi1969@xxxxxxxxx>
- To: programmingblind@xxxxxxxxxxxxx
- Date: Fri, 15 Apr 2011 12:54:16 +0530
hi Chris, that worked. I am using bloodshed as suggested by some members of this list. and Jackie, I already said that the code was compiling but the last message was not staying on screen. Chriss solved this problem. thanks alot. Chriss or anyone else will you please tell me why it happened? and should I use getchar in this way always? take care, regards. ashish On 4/15/11, QuentinC <quentinc@xxxxxxxxxxx> wrote: > Jackie McBride wrote : It is a good idea to flush stdin. > Never flush stdin, it is an undefined behavior > > > __________ > View the list's information and change your settings at > http://www.freelists.org/list/programmingblind > > __________ View the list's information and change your settings at http://www.freelists.org/list/programmingblind
- Follow-Ups:
- Re: correct way to use getchar function?
- From: prateek aggarwal
- Re: correct way to use getchar function?
- References:
- correct way to use getchar function?
- From: ashish rohtagi
- Re: correct way to use getchar function?
- From: Jackie McBride
- Re: correct way to use getchar function?
- From: Christopher Coale
- Re: correct way to use getchar function?
- From: Jackie McBride
- Re: correct way to use getchar function?
- From: QuentinC
- correct way to use getchar function?
Other related posts:
- » correct way to use getchar function? - ashish rohtagi
- » Re: correct way to use getchar function? - Jackie McBride
- » Re: correct way to use getchar function? - Christopher Coale
- » Re: correct way to use getchar function? - Jackie McBride
- » Re: correct way to use getchar function? - ashish rohtagi
- » Re: correct way to use getchar function? - QuentinC
- » Re: correct way to use getchar function? - ashish rohtagi
- » Re: correct way to use getchar function? - prateek aggarwal
- » Re: correct way to use getchar function? - ashish rohtagi
- » Re: correct way to use getchar function? - Jackie McBride
- » Re: correct way to use getchar function? - ashish rohtagi