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
Post a Comment