title: Insert multiple inputs on one line in C++
body: <p>I'm trying to insert multiple inputs on one line, with comma and a space between the inputs. The method I've been using so far separates inputs with spaces.</p>
  
  <pre><code>int a, b , c ,d
  cin &gt;&gt; a &gt;&gt; b &gt;&gt; c &gt;&gt; d ;
  </code></pre>
  
  <p>With this method , the input line looks like this :</p>
  
  <pre><code>1 2 3 4
  </code></pre>
  
  <p>But I want to be able to input data like this:</p>
  
  <pre><code>1, 2, 3, 4
  </code></pre>