D
Divvy Ballacks
How do I convert a C++ string (as in "string thingy;" as opposed to "char
thingy[10];") to an integer? I know how to use C atoi() and strtol() but I
get an compile error. Can anyone help? The simple answer is to initialize
thingy as a C "char" but it needs to be a C++ "string" so I need to find out
how to convert to an int.
thingy[10];") to an integer? I know how to use C atoi() and strtol() but I
get an compile error. Can anyone help? The simple answer is to initialize
thingy as a C "char" but it needs to be a C++ "string" so I need to find out
how to convert to an int.