For all intensive purposes, std::to_int doesn't exist and please disregard my old comment.
Show differencesHistory of post edits
#Actualsuperman3275
Posted 01 December 2012 - 12:29 PM
Sorry! I got std::to_int() mixed up with std::to_string! Please forgive me
!
For all intensive purposes, std::to_int doesn't exist and please disregard my old comment.
For all intensive purposes, std::to_int doesn't exist and please disregard my old comment.
#1superman3275
Posted 01 December 2012 - 10:56 AM
Well, if you use:
It's pretty easy. You should probably look into text parsing, however. It is very helpful, and this only works for Strings that contain *only* a number and nothing else.
int ParsedNumber = std::to_int(StringThatNeedsParsing);
It's pretty easy. You should probably look into text parsing, however. It is very helpful, and this only works for Strings that contain *only* a number and nothing else.