Vector of doubles from block of bytes | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Vector of doubles from block of bytes

is it possible to fill vector<double> from block of bytes read from binary file without looping to read each double and adding it

21st Dec 2017, 10:13 AM
Talal Bader
Talal Bader - avatar
1 Réponse
0
No, it is not possible. But you don't need to read in a loop. Just reed all your binary data and then process it in a loop.
16th Jan 2018, 7:21 PM
Максим Суханов
Максим Суханов - avatar