-1

I want to get an unknown number of integers separated by space as user input. How can I store them in an array?

1 Answers1

-1

You could keep changing the size of the array (since you don't know how big to make it). Or use a data structure (like a vector) designed to change size.

Scott Hunter
  • 46,905
  • 10
  • 55
  • 92