R
ross.oneill
Hi,
I have a string
strcpy(str, "2A");
and I want to grab the char 2 and convert it to an integer.
I tried doing this
int num = atoi(str[0]);
and it will not compile.
Any suggestions
Thanks
-R
I have a string
strcpy(str, "2A");
and I want to grab the char 2 and convert it to an integer.
I tried doing this
int num = atoi(str[0]);
and it will not compile.
Any suggestions
Thanks
-R