title: How do I assign a char pointer with cin?
body: <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 assertion failed when I try to run it.</p>