Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » How i can read formatted data from StringStream (ala STL)?
How i can read formatted data from StringStream (ala STL)? [message #14544] Sat, 01 March 2008 04:13 Go to next message
ajmf77 is currently offline  ajmf77
Messages: 6
Registered: December 2006
Location: Santiago de Chile
Promising Member
How i can read formatted data, like:
1 2 1.2
withou defined separators, from a StringStream class variable, ala STL, like:

stringstream dummy;
string strline;
int i,j;
float x;

dummy.string(strline);

dummy >> i >> j >> x;

Thanx!
Re: How i can read formatted data from StringStream (ala STL)? [message #14561 is a reply to message #14544] Mon, 03 March 2008 19:57 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
You cannot. U++ way would be to GetLine into String, then use some parsing technique, usually CParser. A bit more verbose in this case, but much more flexible.

Mirek
Previous Topic: [BUG] DnD Cursor flicker
Next Topic: Giving the user a Page Setup dialog
Goto Forum:
  


Current Time: Sat Apr 20 08:52:53 CEST 2024

Total time taken to generate the page: 0.02215 seconds