Re: (C) missing semi-colon

From: Alwyn (dt015a1979_at_mac.com.invalid)
Date: 11/05/04


Date: Fri, 05 Nov 2004 05:11:07 +0000

In article <ESCid.24570$OD3.1266909@news20.bellglobal.com>, Paul
Fedorenko <pfedorenko@look.ca> wrote:
>
> You mentioned no less than three times that fflush() is undefined for input
> streams, and that I "must extract the characters with an input function" if
> I want to make sure nothing's left over in stdin from previous inputs.
> That's exactly what I'm trying to do, but know no other way of going about
> it. So if you have a more acceptable solution, I'd be more than happy to
> find out about it and start using it.

This is a well known gripe about C and C++. I understand that
'fflush(stdin)' will work on certain systems and not on others.

On 'fflush(stdin)', you can read:
<http://www.eskimo.com/~scs/C-faq/q12.26.html>
<http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1052863818&id=1
043284351>

An alternative (which is not guaranteed to work) is suggested here:
<http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1044873249&id=1
043284392>

HTH

Alwyn