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 |
|
dolik.rce wrote on Wed, 20 January 2016 15:27Hi,
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
|
|
|
Goto Forum:
Current Time: Fri Nov 01 00:41:21 CET 2024
Total time taken to generate the page: 0.02815 seconds
|