title: Cin>> multiple times on the same line
body: <p>I want to use <code>cin&gt;&gt;</code> in c++ to write the values into a bi-dimensional array on the same line..I don't know English very well but I'll show you an example: </p>
  
  <p>So I have an array and I want to write in it 24 numbers(4 rows, 6 colons) and I want to input all the 6 numbers on the same line not like <code>cin&gt;&gt;</code> usually does like jumping on a new line.
  I got this so far :</p>
  
  <pre><code>int m,n,i,j,a[50][50];
      cout&lt;&lt;"Input the number of rows : ";
      cin&gt;&gt;n;
      cout&lt;&lt;"Input the number of columns : ";
      cin&gt;&gt;m;
      for(i=0;i&lt;n;i++)
      {
          for(j=0;j&lt;m;j++)
          {
              cout&lt;&lt;"Introduceti a["&lt;&lt;i+1&lt;&lt;"]["&lt;&lt;j+1&lt;&lt;"] : ";
              cin&gt;&gt;a[i][j];
          }
      }
  </code></pre>
  
  <p>But this does the usual jump on a new line every time I input something.</p>
  
  <p>Is that possible?..Thank you! :)</p>
  
  <p>Thank you!  :)</p>