Re: [Flightgear-devel] sprintf

2005-07-26 Thread Andy Ross
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

RE: [Flightgear-devel] sprintf

2005-07-26 Thread Jon Berndt
> > 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

Re: [Flightgear-devel] sprintf

2005-07-26 Thread Christian Mayer
-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

Re: [Flightgear-devel] sprintf

2005-07-26 Thread Erik Hofman
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

Re: [Flightgear-devel] sprintf

2005-07-26 Thread Christian Mayer
-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 -

Re: [Flightgear-devel] sprintf

2005-07-26 Thread Erik Hofman
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

[Flightgear-devel] sprintf

2005-07-25 Thread Jon Berndt
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.