How can I detect when ‘cin’ starts reading from a new line. The amount of numbers in each row is unknown. I need them in type ‘int’ to use the data.

exampleInput.txt

1 2 3

Don't use plagiarized sources. Get Your Custom Essay on
How can I detect when ‘cin’ starts reading from a new line. The amount of numbers in each row is unknown. I need them in type ‘int’ to use the data.
Just from $8 /Page 0r 300 words
Order Now

0 2 3 4

Save your time - order a paper!

Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines

Order Paper Now

0 1 3 5

0 1 2 6

1 5 6 8

2 4 6 7

3 4 5 9 10

5 8 9

4 7 9

6 7 8

6

How can I detect when ‘cin’ starts reading from a new line. The amount of numbers in each row is unknown. I need them in type ‘int’ to use the data.

Looking for a similar assignment? Get help from our qualified experts!

Order Now