They see as I made. It gave certain, but it wanted to use Qt.
ifstream file("wavemin_501ns.ad", ios::in | ios::binary);
file.seekg (0, ios::end);
int tam = file.tellg();
file.seekg (0, ios::beg);
qint64 ns = tam/sizeof(float);
QVector<float> vet(tam);
for(int i = 0; i < tam; i++)
file.read(reinterpret_cast < char * > (&vet[i]), sizeof(float));
file.close();
for (int i = 0; i < ns; i++)
cout << vet[i] << " " << i << endl;
cout << tam << " " << ns << endl;
ifstream file("wavemin_501ns.ad", ios::in | ios::binary);
file.seekg (0, ios::end);
int tam = file.tellg();
file.seekg (0, ios::beg);
qint64 ns = tam/sizeof(float);
QVector<float> vet(tam);
for(int i = 0; i < tam; i++)
file.read(reinterpret_cast < char * > (&vet[i]), sizeof(float));
file.close();
for (int i = 0; i < ns; i++)
cout << vet[i] << " " << i << endl;
cout << tam << " " << ns << endl;
To copy to clipboard, switch view to plain text mode
Bookmarks