title: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
body: <p>The assignment <code>C=R.c_str();</code> in the code below causes G++ to throw the following error:</p>
  
  <blockquote>
    <p>error: invalid conversion from 'const char*' to 'char*' [-fpermissive]"</p>
  </blockquote>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace std;
  
  int main()
  {
      string R = "killme";
      char *C = new char[100];
      C=R.c_str();
      cout&lt;&lt;*C;
  }
  </code></pre>
  
  <p>Why is this an error and how can I solve it?</p>