I've problem with reading ints from line. The user w'll enter in console numbers separate with space something like this:
63 25 65 2 1 35 220 0
The line ends on number 0. The number of ints in each line is beetween 0 and 1000. So I need solution, which get me ints to the array:
I know there is function getline. But how convert strings to ints with good performance?
Thanks for any help?