I have a homework problem that I am not sure about. It deals with how input is read. The problem is:

If input data are entered as follows

10 20

30 40

50 60

70 80

and the input statements that read it are

cin >> a >> b >> c;

cin >> d >> e >> f;

cin >> a >> b;

What are the contents of the variables a,b,c,d,e, and f after the statements have executed.

I believe the answer is:

a=10

b=20

c=30

d=40

e=50

f=60

a=10

b=20

But what I don't understand is when will the values 70 and 80 be read? would there have to be an "g" and "h"?

Thanks,

Trekkie