I have no idea where it's reading the file
The call to INPUT.seekg()
is seeking the INPUT
stream's read pointer to the beginning of the file, and then the getline()
loop is reading individual lines of text from the stream until the end of the stream is reached, or a line not containing #
is found, whichever occurs first.
or where it gets it from
The process()
is getting the INPUT
stream from the caller as an input parameter. Where the caller is getting the stream from, we can't answer that, as there is not enough code shown. You need to look at the code that is calling process()
to know where the INPUT
stream is coming from.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…