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
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:
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"?