Christian Mayer wrote:
> You have to use the I/O manipulators (Stroustrup: 21.4.6.2, page 633ff.)
> like std::setprecision().
>
> Compared to the fast printf syntax they are too annoying to write and
> not that flexible, but they are more readable and they can be combined
> to your own user defined
> > No, you can't format (the f in printf) the string using the default C++
> > string class).
>
> You have to use the I/O manipulators (Stroustrup: 21.4.6.2, page 633ff.)
> like std::setprecision().
The string class cannot create a string representation of a floating point
number as far
as I can
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Erik Hofman schrieb:
> Christian Mayer wrote:
>
>> The real cross platform soultion would be the C++ std::string
>
>
> No, you can't format (the f in printf) the string using the default C++
> string class).
You have to use the I/O manipulators (St
Christian Mayer wrote:
The real cross platform soultion would be the C++ std::string
No, you can't format (the f in printf) the string using the default C++
string class).
Erik
___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
ht
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Erik Hofman schrieb:
> Jon Berndt wrote:
>
>> IIRC, sprintf was a problem for some. Is that still the case? I've
>> compiled under Cygwin,
>> Borland C++, and I think I've also compiled code that uses sprintf
>> under IRIX.
>
sprintf is C standard -
Jon Berndt wrote:
IIRC, sprintf was a problem for some. Is that still the case? I've compiled
under Cygwin,
Borland C++, and I think I've also compiled code that uses sprintf under IRIX.
The real problem was snprintf(...) which isn't availble under Winodws:
#if defined(_WIN32) && !defined(__C
IIRC, sprintf was a problem for some. Is that still the case? I've compiled
under Cygwin,
Borland C++, and I think I've also compiled code that uses sprintf under IRIX.
Jon
___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.