Converting a const string into an array of ints?
<p>Hello I am trying to convert a const character string into an array of ints but when I try it does not allow it. My code is:</p>

<pre><code>int isRegistered(const char str[]) {

int isbnInt[10], i;
//char isbnArray[10];

//isbnArray = str;  ----&gt; something I tried

for (i = 0; i &lt; 10; i++)
{
    isbnInt[i] = atoi(str[i]);
    cout &lt;&lt; isbnInt[i] &lt;&lt; endl;
}
}
</code></pre>

<p>But when I try to compile it, I get an error saying "invalid conversion from char to const char*" </p>
