string char being assigned to a char
<p>Just recently began to get back to programing and started doing some exercises but i keep gettin an error that should be simple to solve but cant seem to solve it... </p>

<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;stdlib.h&gt;

using namespace std;

int main()
{
int numberInts = 3;
    int strSize = 0;
    char interator = 'o';

    string source[3];
    string strTest ("this is a test");

    //source = (string*) malloc (3+1);
    source[0] = "(a+(b*c))"; //abc*+
    source[1] = "((a+b)*(z+x))";
    source[2] = "((a+t)*((b+(a+c))^(c+d)))";

    for(int i=0;i&lt;numberInts;i++)
    {
        strSize = source[i].size();
        for(int j = 0; j &lt; strSize; j++)
        {
            iterator = strTest[0];
            if(source[i][j] == '\(')
            {
                cout&lt;&lt;"\(";
            }

        }
        cout &lt;&lt; "\n";
    }
    return 0;
}
</code></pre>

<p>the line "iterator = strTest[0];" gives me  a missing template argument error, and i cant really figure out why cant i assign to a char a position of a string that returns a char...</p>

<p>thanks</p>
