Mail Archives: djgpp/1999/03/06/22:26:30
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 -