From -698636985817690344
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,dafbff8298483cc7
X-Google-Attributes: gidf78e5,public
From: sirwillard@my-deja.com
Subject: Re: String Streams
Date: 2000/02/22
Message-ID: <88sfr9$qd9$1@nnrp1.deja.com>#1/1
X-Deja-AN: 588217791
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
References: <MPG.131aaad04385bc549897ac@news.mindspring.com>
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT)
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Trace: mail2news.demon.co.uk 951186735 mail2news:8250 mail2news mail2news.demon.co.uk
X-Http-Proxy: 1.1 x29.deja.com:80 (Squid/1.1.22) for client 167.16.119.20
Organization: Deja.com - Before you buy.
X-Article-Creation-Date: Mon Feb 21 22:56:43 2000 GMT
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Mydeja-Info: XMYDJUIDsirwillard
Newsgroups: comp.std.c++

In article <MPG.131aaad04385bc549897ac@news.mindspring.com>,
  Dave Hardenbrook <DaveH47@mindspring.com> wrote:
> I'm getting conflicting info: Which is the correct header for ANSI
> compliant String streams, <sstream> or <strstream>?

That depends.  Do you want strstream (uses char* buffers) or
stringstream (or more precisely std::basic_stringstream, which uses
std::string).  <sstream> for stringstream, <strstream> for strstream.

--
William E. Kempf
Software Engineer, MS Windows Programmer


Sent via Deja.com http://www.deja.com/
Before you buy.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]




