I
Illuzioner
hey all,
can anyone enlighten me on the proper c++ way to print formatted text into a
string?
e.g.
string mytext;
double nn=445566.332211;
what is the proper equivalent of the following c type expression:
sprintf(mytext,"%8.3f",nn); // this is wrong in c++!!
and then to add to it?
mytext += more formatted text
any ideas?
thnx a bunch
lou
can anyone enlighten me on the proper c++ way to print formatted text into a
string?
e.g.
string mytext;
double nn=445566.332211;
what is the proper equivalent of the following c type expression:
sprintf(mytext,"%8.3f",nn); // this is wrong in c++!!
and then to add to it?
mytext += more formatted text
any ideas?
thnx a bunch
lou