float x = 0;
float y = 0;
float z = 0;
float r = 0;
float g = 0;
float b = 0;
//analyse(buf, len, 5);
while (file.getline(buf, n + num))
{
sscanf_s(buf, "%f%f%f%f%f%f", &x, &y, &z, &r, &g, &b);
Point3D xx(x, y, z, RGB(&r, &g, &b));
Sample->push_back(xx);
}
这样读取文件要两秒多,怎么提高速度呢