You can't just read the second column without reading anything else.
What you can do is read all the data, and ignore everything but the second column. For example, read a line of data (with std::getline
) then from it extract an int
and a double
, but ignore both the int
and the rest of the line.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…