delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/10/13:01:45

From: Niklas_Pson AT nosmam DOT hotmail DOT com (Niklas Pettersson)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: strstream / stringstream
Date: 10 Sep 2000 16:46:53 GMT
Organization: Lund Institute of Technology, Sweden
Lines: 31
Message-ID: <8FABBF238NiklasPsonnospamhotm@130.235.20.4>
References: <JcZt5.72$t42 DOT 3671 AT nsw DOT nnrp DOT telstra DOT net>
NNTP-Posting-Host: npedt97.univ.vxu.se
User-Agent: Xnews/03.04.11
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

This is a problem in GCC. The string streams in sstream operates on C++ 
strings (the string class) and are the only string streams that is part of 
the Standard C++. The streams in strstream(available in DJGPP) is almost 
identicall but uses the old C strings instead (so yoy must do allocation 
and put '\0' at the end of the string by yourself..)

/ Niklas 


paul AT ibc DOT com DOT au DOT NOSPAM (Paul Cechner) wrote in
<JcZt5.72$t42 DOT 3671 AT nsw DOT nnrp DOT telstra DOT net>: 

>i have not been able to use the istringstream class at all... actually,
>i have not even been able to #include <sstream>
>
>should i be using #include <strstream> and the istrstream class instead?
>are they identical in usage and functionality?
>
>thankyou in advance for the help
>
>--
>note: spam resistant email
>
>----------------------
>Paul Cechner
>
>
>
>
>

- Raw text -


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