On 3/29/07, Karthikeyan M <[EMAIL PROTECTED]> wrote: >> From: Paul Herring >> On 29 Mar 2007 02:03:03 -0700, Karthikeyan M wrote: >> >> > You are using windows is it?? Give fflush(stdin) before scanf >> > statement >> > in the loop. It'll work >> >> fflush() is only defined for output streams, and is not guaranteed to >> work/do anything on input streams. See >> http://www.cprogramming.com/faq/cgi-bin/smartfaq.cgi?answer=1052863818&id=1043284351 > > No, it works! I've had the similar problems many time.. it solved all > the time for me.. I use VC++
1) You didn't even visit that link did you? Or if you did, you didn't read it. 2) Not everyone uses VC++, See the link referenced in #1 above. -- PJH Aio, quantitas magna frumentorum est
