Vector of doubles from block of bytes | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answer
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