經安全檢測,此網站為安全網站,請放心前往原始網址!

while loop and read file program - C++ Forum - Cplusplus.com

Suppose the ifstream variable is input, then use while(!input.eof()) for ... while (myfile.good() ) { // Get the current line in the file getline (myfile, ...

www.cplusplus.com

網址安全性掃描由 google 提供