How to take input of space seperated integers in an array (c++) -


suppose have take input of n integers (previously provided user) , enter them array directly. example

cin >> >> b; 

is given input

5 10

5 assigned , 10 b.

i want similar thing arrays. please help.

for(int = 0; < n; i++){     cin>> array[i] >> array2[i]; } 

right?


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -