delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/07/09:21:05.1

From: "Paganini <Nathan E. Banks>" <paganini AT madisontelco DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Strings
Date: Sun, 7 Mar 1999 08:16:26 -0600
Organization: Info Avenue Internet Services
Lines: 32
Message-ID: <7bu1ne$hb2$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> <7bsma6$ckk$1 AT news3 DOT infoave DOT net> <36E1E102 DOT 2205 AT infi DOT net>
NNTP-Posting-Host: ham104.madisontelco.com
X-Trace: news3.infoave.net 920816174 17762 206.28.233.104 (7 Mar 1999 14:16:14 GMT)
X-Complaints-To: usenet AT news3 DOT infoave DOT net
NNTP-Posting-Date: 7 Mar 1999 14:16:14 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

Joe Wright <conserv3 AT infi DOT net> wrote in message
news:36E1E102 DOT 2205 AT infi DOT net...
>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().
>
>To get a text 'line' from a given stream, fgets() is usually the
>Standard function of choice.  It is declared in stdio.h and does all the
>'right' things.

I don't need to guess again...there certainly is a header <string> and a
function getline...I suggest that you are still programming in C...download
the C++ language extension.

--
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