'Is there a way in C++ to check if a line of an opened fstream file contains multiple integers?

I have myfile.in opened with the following text:

1
4 5
3

Going for every number while (myfile >> var) cout << var << endl; will output each integer one by one:

1
4
5
3

Is there any way I can check all the lines of myfile.in and output the lines with more than 1 integer? For the example above:

4 5

or

4
5


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source