Const char... changed?
<p>This is a portion of my simple program</p>

<pre><code>string appData = getenv("APPDATA");
const char *mypath= (appData+"\\MyApplication\\hello.txt").c_str();      
cout &lt;&lt; mypath;  
// output: c:\users\xrobot\appdata\Roaming\Myapplication\hello.txt   
fstream file(mypath,ios::in);
ofstream filetemp;    
filetemp.open("world.bak");
cout &lt;&lt; mypath;  
// output: É↕7
</code></pre>

<p>Why is mypath changed in that weird string ?</p>
