Trouble converting string from commandline to array of floats
<pre><code>char * temp_array;

strcpy(temp_array, argv[i + 1]);

            for(int j = 0; j &lt; 8; j++)
            {
                fann_input[j] = atoi(temp_array[j]);
                printf("%f\n", fann_input[j]);
                printf("o%c\n", temp_array[j]);
            }
</code></pre>

<p>fann_input is a  float array.</p>

<p>on the atoi line, I get the error:</p>

<pre><code>src/main.cpp: In function ‘int main(int, const char**)’:
src/main.cpp:117: error: invalid conversion from ‘char’ to ‘const char*’
src/main.cpp:117: error:   initializing argument 1 of ‘int atoi(const char*)’
</code></pre>

<p>Any ideas?</p>

<p>each of the characters is either a 1 or a 0</p>
