C++ Invalid conversion from
<p>I'm trying to solve <a href="http://www.codechef.com/ANDR2012/problems/A106" rel="nofollow">this</a> problem and i get such an error [ Invalid conversion from 'char' to 'const char' ] ,but i can't figure out how to solve it. Here are the lines in which the problem is :</p>

<pre><code>Declarations:
string alp("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
string formatted;
char partoftext[20];
size_t found;
</code></pre>

<hr>

<pre><code>found = text.copy(partoftext,2,0);
partoftext[found] = '\0';
a = atoi(partoftext);
formatted.append(alp[a]);

...    
</code></pre>

<p>and the problem is in this line of code : </p>

<pre><code>formatted.append(alp[a]);
</code></pre>

<p>thanks.</p>
