delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/06/21:25:54.1

From: "Paganini <Nathan E. Banks>" <paganini AT madisontelco DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Strings
Date: Sat, 6 Mar 1999 19:55:43 -0600
Organization: Info Avenue Internet Services
Lines: 55
Message-ID: <7bsma6$ckk$1@news3.infoave.net>
References: <n6oPqIA6NS42Ewm8 AT dunvegan1 DOT demon DOT co DOT uk> <7brab6$cts$1 AT news3 DOT infoave DOT net> <36e13576 DOT 0 AT news DOT uni-bielefeld DOT de> <7bsgti$8ic$1 AT news3 DOT infoave DOT net>
NNTP-Posting-Host: ham107.madisontelco.com
X-Trace: news3.infoave.net 920771718 12948 206.28.233.107 (7 Mar 1999 01:55:18 GMT)
X-Complaints-To: usenet AT news3 DOT infoave DOT net
NNTP-Posting-Date: 7 Mar 1999 01:55:18 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.0810.800
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


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