Summary:
In this tutorial, Bjorn and Matthew show the proper use of
std::stringstream
, and extol the virtues of making your classes streamable.
The ability to add new comments in this discussion is temporarily disabled.
Most recent reply: June 2, 2005 10:39 AM by
Bjorn
|
In this tutorial, Bjorn and Matthew show the proper use of std::stringstream, and extol the virtues of making your classes streamable. http://www.artima.com/cppsource/streamstrings.html
|
|
|
There is a mistake in the URL for reference 6 - there should be no space before the n in wilson.
An interesting article and something I would like to work on as our current code uses scanf and printf for ascii file i/o.
Looking forward to more information on istringstream and especially techniques for implementing operator>> for classes.
|
|
|
Hello Dan,
> There is a mistake in the URL for reference 6 - there > should be no space before the n in wilson.
Thanks for spotting that one! > An interesting article and something I would like to work > on as our current code uses scanf and printf for ascii > file i/o.
Sounds like a good idea. The IOStreams library is very powerful, yet sadly underused. > Looking forward to more information on istringstream and > especially techniques for implementing operator>> for > classes.
We'll do our best!
Cheers, Bjorn
|
|