QTextStream in(&file);
double data[100][2];
for(int i=0 ;i<100;i++)
{
double x,y;
QString content;
QString content1;
in >> x >> y;
content = content.setNum(x);
content1=content1.setNum(y);
data[i][0]=content.toDouble();
data[i][1]=content1.toDouble();
in.readLine();
}
|