[gameprogrammer] Re: How to assign a numeric variable to an std::string?
- From: Brian <brian.ripoff@xxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Fri, 11 Jan 2008 21:48:56 +0000
On Jan 11, 2008 9:36 PM, Kevin Jenkins <gameprogrammer@xxxxxxxxxx> wrote:
> float f=5;
> std::string myStr;
> myStr << f;
Use std::stringstream, or a wrapper thereof such as boost::lexical_cast.
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- Follow-Ups:
- [gameprogrammer] Re: How to assign a numeric variable to an std::string?
- From: Kevin Jenkins
- References:
- [gameprogrammer] How to assign a numeric variable to an std::string?
- From: Kevin Jenkins
Other related posts:
- » [gameprogrammer] How to assign a numeric variable to an std::string?
- » [gameprogrammer] Re: How to assign a numeric variable to an std::string?
- » [gameprogrammer] Re: How to assign a numeric variable to an std::string?
- » [gameprogrammer] Re: How to assign a numeric variable to an std::string?
- » [gameprogrammer] Re: How to assign a numeric variable to an std::string?
- » [gameprogrammer] Re: How to assign a numeric variable to an std::string?
- » [gameprogrammer] Re: How to assign a numeric variable to an std::string?
- » [gameprogrammer] Re: How to assign a numeric variable to an std::string?
- [gameprogrammer] Re: How to assign a numeric variable to an std::string?
- From: Kevin Jenkins
- [gameprogrammer] How to assign a numeric variable to an std::string?
- From: Kevin Jenkins