title: Cannot convert buffer[200] to str[]
body: <p>I have to read some text from console and then search for the text "simple" in that string. I have:</p>
  
  <pre><code>char Buffer[200];
  cin &gt;&gt; Buffer; //read text form keybord
  
  char str[] = Buffer;
  char * pch;
  pch = strstr (str,"simple");
  strncpy (pch,"sample",6);
  puts (str);
  </code></pre>
  
  <p>How to convert <code>Buffer[200]</code> to <code>str[]</code> so that the program works.</p>