title: How to use the getline command in c++?
body: <p>I'm trying to turn a cout command into a getline command in c++.</p>
  
  <p>This is my code that I'm trying to changes....</p>
  
  <pre><code>for (int count=0; count &lt; numberOfEmployees; count++)
      {
          cout &lt;&lt; "Name: ";
          cin &gt;&gt; employees[count].name; 
  
          cout &lt;&lt; "Title: ";
          cin &gt;&gt; employees[count].title;
  
          cout &lt;&lt; "SSNum: ";
          cin &gt;&gt; employees[count].SSNum;
  
          cout &lt;&lt; "Salary: ";
          cin &gt;&gt; employees[count].Salary;
  
          cout &lt;&lt; "Withholding Exemptions: ";
          cin &gt;&gt; employees[count].Withholding_Exemptions; 
      }
  </code></pre>
  
  <p>I'm trying to change this line: <code>cin &gt;&gt; employees[count].name;</code> and this line: <code>cin &gt;&gt; employees[count].title;</code> into getlines. Can anyone help?</p>
  
  <p>Thanks </p>