2. For the first line you would read in the single value by itself
lineIn >> X;
for the rest of the lines you would read it in
lineIn >> X; lineIn >> Y;
If you read it in as a string you would break it apart based on where the space is at
There are a couple ways to do that if (string[i] == " ")
might work and then use string.erase and then convert to a int if that is your desire.