The Artima Developer Community
Sponsored Link

Articles Forum
Stream Thy Strings

2 replies on 1 page. Most recent reply: Jun 2, 2005 2:39 PM by Bjorn Karlsson

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Chuck Allison

Posts: 63
Nickname: cda
Registered: Feb, 2003

Stream Thy Strings Posted: May 28, 2005 12:00 PM
Reply to this message Reply
Advertisement
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


Dan Pidcock

Posts: 4
Nickname: danio
Registered: Jun, 2005

Re: Stream Thy Strings Posted: Jun 1, 2005 6:57 AM
Reply to this message Reply
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.

Bjorn Karlsson

Posts: 9
Nickname: bfk
Registered: Aug, 2004

Re: Stream Thy Strings Posted: Jun 2, 2005 2:39 PM
Reply to this message Reply
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

Flat View: This topic has 2 replies on 1 page
Topic: Sun opens the Jini Licensing Model Previous Topic   Next Topic Topic: Using a Decision Tree to Navigate Complex APIs


Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2014 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us