Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.glorb.com!feeder.erje.net!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ian Collins Newsgroups: comp.lang.c++ Subject: Re: cin - Why Does It Require 2 Returns? Date: Tue, 23 Aug 2011 08:02:55 +1200 Lines: 18 Message-ID: <9bfqvfFs5qU2@mid.individual.net> References: <9bbitnF5rnU1@mid.individual.net> <9bdj8eFr0aU3@mid.individual.net> <9bfpasFs5qU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net rB49ZWNwANUhnIm/qgRA8ARVtY60U5E1OiqU4zOsECMUphNk81 Cancel-Lock: sha1:gQwqd7fKeJ4GZM8JjZsk1KIlg3o= User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:9196 On 08/23/11 07:45 AM, Stefan Ram wrote: > Ian Collins writes: >> Until the program grows and the user wonders why the line does not appear. > > A: »Why should I use X in this program?« > B: »You do not actually need it in this program. > But if you would write another program, you would need it. > So you'd better start using it right now, should your > program ever be changed somehow into that other program.« When interacting with a user, have you ever seen a case where a flush is detrimental to the operation of a program? Sure too many flushes may cause performance penalties when wring gigabytes of data to a file, but when interacting with the user? -- Ian Collins