cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/19/06:55:43

From: "bowman" <bowman AT montana DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990418140925 DOT 22615c-100000 AT is>
Subject: Re: Challenge for C++ programmers:
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Message-ID: <sMlS2.2355$R93.22629@newsfeed.slurp.net>
Date: Sun, 18 Apr 1999 08:13:21 -0600
NNTP-Posting-Host: 208.4.224.38
X-Trace: newsfeed.slurp.net 924444824 208.4.224.38 (Sun, 18 Apr 1999 09:13:44 CDT)
NNTP-Posting-Date: Sun, 18 Apr 1999 09:13:44 CDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote in message
news:Pine DOT SUN DOT 3 DOT 91 DOT 990418140925 DOT 22615c-100000 AT is...
>
> 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 ;-).

Actually, Stroustrup shows a two-liner. I can't get it to compile, but I
only speak enough C++ to deal with MSVC++ .


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019