title: Char array with cin.getline()
body: <p>I'm doing an assignment where we aren't allowed to use strings, we have to use char arrays. This is my code:    </p>
  
  <pre><code>cout &lt;&lt; "Enter Album name: ";
  cin &gt;&gt; CDdata[count].title;     
  fout &lt;&lt; CDdata[count].title;
  </code></pre>
  
  <p>the problem is that when I enter something with a space in it, the rest of my code gets screwed up. </p>
  
  <p>How do I get it so that I can enter something with a space in it?</p>