Also posible:
out << int1 << "\t"<<int2 << "\t"<<int3 <<endl;
in >> int1;
in >> int2;
in >> int3;
out << int1 << "\t"<<int2 << "\t"<<int3 <<endl;
in >> int1;
in >> int2;
in >> int3;
To copy to clipboard, switch view to plain text mode
That's how I would do it.
Or:
out << int1 << "\t"<<int2 << "\t"<<int3 <<endl;
sTemp = in.readLine();
tsTemp = sTemp.split("\t");
int1 = tsTemp.at(0);
int2 = tsTemp.at(1);
int3 = tsTemp.at(2);
QStringList tsTemp;
QString sTemp;
out << int1 << "\t"<<int2 << "\t"<<int3 <<endl;
sTemp = in.readLine();
tsTemp = sTemp.split("\t");
int1 = tsTemp.at(0);
int2 = tsTemp.at(1);
int3 = tsTemp.at(2);
To copy to clipboard, switch view to plain text mode
Cheers,
Bart.
Bookmarks