http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gameprogrammer] Re: How to assign a numeric variable to an std::string?



float blah = boost:lexical_cast<float>("314.34");

of course you need to have and include the right boost header too.

Alan Wolfe wrote:
*printf for the win (:

it's funny, most everyone i talk to / work with seems to not be too
fond of the C++ strings and cout, cin and stream bs.

Wonder why that is...

On 1/11/08, Kevin Jenkins <gameprogrammer@rakkar.org> wrote:

---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html