How to read the Exponential entry of a number from a file (more desirable) And in what form should it be recorded in a file?
|
1 answer
Just take and read double with fstream
#include <fstream> //... std::fstream fs ("test.txt"); double d; fs >> d; Example cin but no differences
|
strtofor anlogs do not suit? - VTTdoublein this form is read withiostreamwithout problems - yrHeTaTeJlb