title: getline() skipping first even after clear()
body: <p>So I have a function that keeps skipping over the first getline and straight to the second one. I tried to clear the buffer but still no luck, what's going on?</p>
  
  <pre><code>void getData(char* strA, char* strB)
  {
      cout &lt;&lt; "Enter String 1: ";               // Shows this line
      cin.clear();
      cin.getline(strA, 50);                    // 50 is the character limit, Skipping Input
  
      cout &lt;&lt; endl &lt;&lt; "Enter String 2: ";       // Showing This Line
      cin.clear();
      cin.getline(strB, 50);                   // Jumps Straight to this line
  }
  </code></pre>