Home » Community » Newbie corner » Problem in example code (Tried SplitterFrame yet minor problem.)
Re: Problem in example code [message #45887 is a reply to message #45886] |
Wed, 20 January 2016 10:57   |
|
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
|
|
|
Goto Forum:
Current Time: Sun May 04 22:45:26 CEST 2025
Total time taken to generate the page: 0.03669 seconds
|