title: How to take input of space seperated integers in an array (c++)
body: <p>Suppose I have to take input of <code>N</code> integers (previously provided by the user) and enter them into an array directly. For example</p>
  
  <pre><code>cin &gt;&gt; a &gt;&gt; b;
  </code></pre>
  
  <p>is given the input</p>
  
  <p>5 10</p>
  
  <p>5 is assigned to a and 10 to b.</p>
  
  <p>I want a similar thing with arrays. Please help.</p>