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 » Community » Newbie corner » Problem in example code (Tried SplitterFrame yet minor problem.)
Re: Problem in example code [message #45888 is a reply to message #45887] Wed, 20 January 2016 11:24 Go to previous messageGo to previous message
vegaonline is currently offline  vegaonline
Messages: 35
Registered: December 2015
Location: Mumbai, India
Member

dolik.rce wrote on Wed, 20 January 2016 15:27
Hi,

You can simply construct Pointf from two doubles: Pointf(x, y). So the code would be:
Vector<Pointf> data;
while (!inF.IsEof()) {
		SplitTo(ln, ',', val1, val2);
		double x = StrDbl(TrimBoth(val1));
		double y = StrDbl(TrimBoth(val2));
		data.Add(Pointf(x,y));
		ln = inF.GetLine();
	}


Honza


Thanks a lot. What would happen for 3D data having (x, y, z) for contour plot?
Best,
Abhijit
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Issues using 2015.2 version
Next Topic: How to build FREBSD *.so in Windows?
Goto Forum:
  


Current Time: Fri Nov 01 01:00:29 CET 2024

Total time taken to generate the page: 0.04998 seconds