delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/06/22:26:30

Date: Sat, 6 Mar 1999 22:26:09 -0500 (EST)
From: Daniel Reed <djr AT narnia DOT n DOT ml DOT org>
To: djgpp AT delorie DOT com
Subject: Re: Strings
In-Reply-To: <36E1E102.2205@infi.net>
Message-ID: <Pine.LNX.4.10.9903062224450.11586-100000@narnia.n.ml.org>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Sat, 6 Mar 1999, Joe Wright wrote:
) Paganini wrote:
) > I did a little more research, and I wasn't too far off...this is what works
) > with DJGPP, and it is correct according to the standard...
) > 
) > #include <string>
) > ...
) > getline(<stream>, <string_var>);
) > ...
) Guess again.  There is no header <string> and there is no function
) getline().
Guess again. string is a C++ header file which, at least on my system,
includes <std/bastring.h> which includes a prototype for getline():
getline (istream&, basic_string <charT, traits, Allocator>&, charT delim = '\n');

-- 
Daniel Reed <n AT ml DOT org>
I can levitate birds, but nobody cares...

- Raw text -


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