I have the array of the arrays of char
. I need to convert it into an array of int
. How can I do that? I know we can convert char*
to int
as follows:
char *i = "123";
std::stringstream ss;
ss << i;
int ii;
ss >> ii;
std::cout << ii << std::endl; //prints 123
But how can I convert the array of such an arrays into an array of integers?