How can I get input from the user if they are to separate their inputs by whitespace (e.g. 1 2 3 4 5) and I want to put it in an array? Thanks.
Hmmmm. I see most of the responses are using a vector which I guess I’ll have to do research on. I thought there would be a more simpler, yet possibly messier response since we haven’t covered vectors like using sscanf or something. Thanks for the inputs.
1 Answer