invalid conversion from 'const char*' to 'std::basic_ostream<char>::char_type {aka char}'
<p>Can't get around this problem</p>

<pre><code>ofstream out;
out.open("o");
string a[5][5];
//fill array with letters from 'in.get(ch)'...and then i've tryed:
//1
out.put(a[row[0]][col[1]].c_str()); //=&gt;invalid conversion from 'const char*' to 'std::basic_ostream&lt;char&gt;::char_type {aka char}'
//2:
out.put(const_cast&lt;char *&gt;(a[row[0]][col[1]].c_str())); //=&gt;invalid conversion from 'char*' to 'std::basic_ostream&lt;char&gt;::char_type {aka char}' 
//3
char x=const_cast&lt;char *&gt;(a[row[0]][col[1]].c_str());
out.put(x); //=&gt;invalid conversion from 'char*' to 'char'
</code></pre>

<p>Nothin seems to be working. Can you help me? What should i do?</p>
