it SHOULD be easy
I want to convert a string(not a char array, an element of a string array) to a short( but an int is what I'm asking after)
I cant seem to get CONVERT() or StrToInt to work,and atoi uses a string array. Unless of course, I use a multidimesional char array(how about no). I know this is in the faq, but that's atoi. Any suggestions? Possibly, code to convert char array to string?
basic_string<>::c_str() returns the C-style string you need:
string my_string = "1234";
int my_int = atoi(my_string.c_str());