比较简单,函数将游标定位在离from 位置 off远的位置。题中就是离文件开始处一个student远的位置,也就是下一个student的位置。
std::ifstream a; a.seekg(off, from);