title: cin.getline ignoring first word?
body: <p>I'm having a problem with <code>cin.getline();</code>. cin.getline is ignoring the first word</p>
  
  <pre><code>cout &lt;&lt; endl &lt;&lt; "Insert the reason: " &lt;&lt; endl &lt;&lt;"&gt; ";
  cin &gt;&gt; Reason;
  cin.getline(Reason,200);
  </code></pre>
  
  <p>I think thats how you do it anyway. I'm not sure if the problem is here, or when I input it into a file:</p>
  
  <pre><code>myfile.open("BudgetLog.txt", ios::app);
  myfile &lt;&lt; endl &lt;&lt; "Time: " &lt;&lt; Date &lt;&lt; " " &lt;&lt; Time &lt;&lt; "\t\tAmount taken: " &lt;&lt; Amount &lt;&lt; "\t\tReason: " &lt;&lt; Reason &lt;&lt; " \t\tAmount left: " &lt;&lt; CurrentAmount &lt;&lt;endl;
  myfile.close();
  </code></pre>