Date: Sun, 18 Apr 1999 14:09:45 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: David Whitcombe cc: djgpp AT delorie DOT com Subject: Re: Challenge for C++ programmers: In-Reply-To: <371798B4.C73F0A4C@rof.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Fri, 16 Apr 1999, David Whitcombe wrote: > Implement (in 100 lines or less) a "press any key to continue" routine > using only iostreams. I don't know much about iostreams, but all you need to do to get this effect is to switch stdin to binary mode. ANSI C has `freopen' (since a call to `setmode' is out, because it's non-standard). If C++ has something similar, you won't need more than 10 lines for this one ;-).