title: Weird behavior while converting a std::string to a LPCSTR
body: <p>I was playing with some strings when I stumbled upon a weird behavior while converting a <code>std::string</code> to a <code>LPCSTR</code>.</p>
  
  <p>I have written a small test application to demonstrate :</p>
  
  <pre><code>#include &lt;string&gt;
  #include &lt;Windows.h&gt;
  #include &lt;iostream&gt;
  
  using namespace std;
  
  int main ()
  {
      string stringTest = (string("some text") + " in addition with this other text").c_str(); 
      LPCSTR lpstrTest= stringTest.c_str();
      cout &lt;&lt; lpcstrTest &lt;&lt; '\n';
  
      cout &lt;&lt; (string("some text") + " in addition with this other text").c_str() &lt;&lt; '\n';
  
      LPCSTR otherLPCSTR= (string("some text") + " in addition with this other text").c_str();
      cout &lt;&lt; otherLPSTR;
  }
  </code></pre>
  
  <p>And here is the output :</p>
  
  <pre><code>some text in addition with this other text
  some text in addition with this other text
  îþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþ...[more unreadable stuff]...
  </code></pre>
  
  <p>I am simply wondering what is causing this strange behavior.</p>
  
  <p>Thank you</p>