std::string str("543 blah");int i = boost::lexical_cast<int>(str);
[edited by - 666_1337 on July 3, 2003 12:15:04 PM]
std::string str("543 blah");int i = boost::lexical_cast<int>(str);
quote:Original post by 666_1337
LOL haxor this:
quote:Original post by Way Walker
The best way using C is strtol or strtoll in stdlib.h
quote:Original post by SabreManquote:Original post by Way Walker
The best way using C is strtol or strtoll in stdlib.h
He''s converting in the opposite direction.