E
Eli Luong
I had a string element, using the string class, and I'm trying to
convert this to an integer. I took a substring of the string because
that is where the integer is located, and I tried to use atoi() on it,
but it seems atoi() accepts char* type variable, whereas what I have is
a string. I've tried searching for a method to convert a string to an
integer, but haven't found a clear answer and was hoping someone here
can help.
Thanks,
- Eli
convert this to an integer. I took a substring of the string because
that is where the integer is located, and I tried to use atoi() on it,
but it seems atoi() accepts char* type variable, whereas what I have is
a string. I've tried searching for a method to convert a string to an
integer, but haven't found a clear answer and was hoping someone here
can help.
Thanks,
- Eli