G
Gernot Frisch
hi,
is it possible - or better: why hasn't it been in the std - to add
this function:
ofstream os("xy");
int my_int = 0;
double my_double =123.12;
os << std::format("8.3f", my_double) << std::format(".5d", my_int);
know what I mean? Because when you try to write a double in format
"%8.3f" to an ostream it's ridiculous what you have to write (using
ostringstream and such).
Where can I apply for that to be added?
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com
is it possible - or better: why hasn't it been in the std - to add
this function:
ofstream os("xy");
int my_int = 0;
double my_double =123.12;
os << std::format("8.3f", my_double) << std::format(".5d", my_int);
know what I mean? Because when you try to write a double in format
"%8.3f" to an ostream it's ridiculous what you have to write (using
ostringstream and such).
Where can I apply for that to be added?
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com