假设File中的内容为:name 123 234 345 456
QTextStream t(&File);
if (!t.atEnd())
{
t >> Name; //Name为QString
t >> x1 >> y1 >> x2 >> y2; // x1、y1、x2、y2均为double型
}
那么这段代码执行后 Name="name"还是="name 123 234 345 456 "?
x1=123 , y1=234 , x2=345 , y2=456 吗?
谢谢各位前辈指点~~~!!