Hello everybody,
I've just got an assignment, I need to write a program that receives as input an unknown amount of numbers in one line with space after each number, and enter after the last number. I need to get those numbers with the 'cin' command.
How can I do that?
Since I don't know how many numbers, I thought about placing cin in a loop but how can it recognize when the line has ended?
Thank you for you help!!