Remove bogus print
[agianapa.git] / qt / mkspdata / main.cpp
blobaa1875bfb101e7bf3dc62278ddd0785f15d75ad0
1 #include <iostream>
2 #include <QDataStream>
3 #include <QFile>
5 int main(int argc, char *argv[])
7 QFile file;
8 float x, y, z, xR, yR, zR, t;
10 file.setFileName(argv[1]);
12 // Open file for writing
13 file.open(QIODevice::WriteOnly);
14 QDataStream out(&file);
16 for (t = 0.0; t < 100.0; t += 1.0)
17 out << (float)(5.0 * t * t) << 0.0f << 0.0f << 0.0f << 0.0f << 0.0f;
18 file.close();
20 // Open file for reading
21 file.open(QIODevice::ReadOnly);
22 QDataStream in(&file);
24 while (!in.atEnd()) {
25 in >> x >> y >> z >> xR >> yR >> zR;
26 std::cout << "x = " << x
27 << "\ty = " << y
28 << "\tz = " << z
29 << "\txR = " << xR
30 << "\tyR = " << yR
31 << "\tzR = " << xR << "\n";
33 file.close();
35 return 0;