I've problem with reading ints from line. The user w'll enter in console numbers separate with space something like this:
Quote
1 20 25 63 0
63 25 65 2 1 35 220 0
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:
Quote
int tab[10][10];
I know there is function getline. But how convert strings to ints with good performance?
Thanks for any help?