How do I assign a char pointer with cin?
<p>So basically when I try to do this</p>

<pre><code>char* inputFileName;
cout&lt;&lt;  "Filename: "; cin&gt;&gt;*inputFileName;
</code></pre>

<p>it lets me input the filename but when I press enter I get an unhandled exception error. Any ideas? </p>

<p>edit also if I try </p>

<pre><code>char* inputFileName;
cout&lt;&lt;  "Filename: "; cin&gt;&gt;inputFileName;
</code></pre>

<p>i get a debug asseration failed when i try to run it.</p>
