title: Clearing the buffer for multiple inputs in the same line
body: <p>Is there an away to clear the buffer after each input while having multiple inputs in one line?
  I've been capturing each variable one at a time and clearing the buffer as such: </p>
  
  <pre><code>cin &gt;&gt; length;
  cin.clear();
  cin.ignore(10000, '\n'); 
  </code></pre>
  
  <p>is the same some how possible with this line of code:</p>
  
  <pre><code>cin &gt;&gt; length &gt;&gt; width &gt;&gt; height;
  </code></pre>