"Daw" <da****@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
| How about using sstream-header?
|
Thats what he meant when he said use stringstream instead. Doesn't it
make sense that the OP first learn about stringstream before considering
whether or not to include <sstream>?
A stringstream is a completly different animal than anything found in
the old strstream header.
For the OP: stringstreams are definitely the way to go and well worth
the effort. The deprecated strstream's components are reknown for silent
failures and other issues that generate buggy code. strstreams deal with
char* while stringstreams deal with std::strings. You'll find that
implementing stringstreams will fix many a program that rely on the old
header.
http://www.cplusplus.com/ref/iostream/stringstream/ http://www.cplusplus.com/ref/iostrea...ingstream.html http://www.cplusplus.com/ref/iostrea...ingstream.html