Mail Archives: djgpp/1999/03/06/21:25:54.1
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>);
...
--
Paganini <Nathan E. Banks>
MOOk, the Great High Llama
ICQ 25308827
http:\\web.madisontelco.com\~paganini
Paganini <Nathan E. Banks> <paganini AT madisontelco DOT com> wrote in message
news:7bsgti$8ic$1 AT news3 DOT infoave DOT net...
>Manni Heumann <manni AT hotbot DOT com> wrote in message
>news:36e13576 DOT 0 AT news DOT uni-bielefeld DOT de...
>>In article <7brab6$cts$1 AT news3 DOT infoave DOT net>, "Paganini <Nathan E. Banks>"
><paganini AT madisontelco DOT com> wrote:
>>>Actually, cin >> string_val DOES work...but a better way is to use
>>>string_val.Getline().
>>>
>>>Check the <string> docs for other useful member functions like
>Read_token().
>>>
>>
>>Hi Nathan!
>>
>>Could you elaborate on this?
>>
>>Are you saying that string has a member Getline() ?
>>Getline with a capital G?
>>Does it take any arguments?
>>How does it know what stream to use?
>>
>>Are you shure about this?
>
>Hi! According to the standard, the <string> class has a getline (small 'g')
>that reads a line from a stream. It takes a stream as an argument I
>believe... I just tried it with DJGPP however and it didn't work (!) Which
>leads me to ask, is there a reference for DJGPP that lists all the
functions
>in the libraries that come with it? There's a really nice one for libc...is
>there one for the other libs?
>
>--
>Paganini <Nathan E. Banks>
>MOOk, the Great High Llama
>ICQ 25308827
>http:\\web.madisontelco.com\~paganini
>
>
>
- Raw text -