From: "Thone" Newsgroups: comp.os.msdos.djgpp Subject: I wonder why i can't use fflush() in DJGPP Date: Thu, 9 Sep 1999 22:19:36 +0700 Organization: NECTEC News Server Lines: 13 Message-ID: <7r8jd1$vri$1@atom.nectec.or.th> NNTP-Posting-Host: phoenix.acc.chula.ac.th X-Trace: atom.nectec.or.th 936890593 32626 161.200.64.2 (9 Sep 1999 15:23:13 GMT) X-Complaints-To: usenet AT nectec DOT or DOT th NNTP-Posting-Date: 9 Sep 1999 15:23:13 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com When I write this two lines : scanf("%c", &ch); scanf("%c", &ch); the computer will wait for user input data for one time. so I asked someone about that and he told me to put ffluch(stdin) between those two lines.So I do that and it's ok when I use Borland C++ compiler.But when i use DJGPP it still have the same problem, Yours faithfully, Thone