io_x said:
why not somethig of this kind
f64 v;
cout << fmt("%4:4f64") << v;
[post to c and c++ newsgroup]
the above should be possible in C++ (pheraps using instead "%4.4f").
don't remember what is fmt, could be one "stream manipulator"? could be
one class [the call to one constructor of a tmp object]?
don't know. do you know it someone of you?
Is it possible this below?
double a, b;
cout << SPrintf("%2.2f %2.3f", a, b) << "\n";
with SPrintf() one function (stream manipulator?)
ostream& SPrintf(ostream& v, char* fmt, ...)?
that print like printf() in stdout?