delorie.com/archives/browse.cgi | search |
Date: | Sun, 18 Apr 1999 14:09:45 +0300 (IDT) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | David Whitcombe <mxedisn AT rof DOT net> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: Challenge for C++ programmers: |
In-Reply-To: | <371798B4.C73F0A4C@rof.net> |
Message-ID: | <Pine.SUN.3.91.990418140925.22615c-100000@is> |
MIME-Version: | 1.0 |
Reply-To: | djgpp AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
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 ;-).
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |