Код: Выделить всё
$ cat input
1.2345
6.7890
$ cat main.cpp
#include
#include
#include
struct C {
C(const char *s) {
std::fstream f(s);
double d;
f >> d;
std::cout d;
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79638229/how-do-i-read-floating-point-numbers-from-file-when-using-gtkmm[/url]
Мобильная версия