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

Reading next line of a file - C++ Forum - Cplusplus.com

You probably meant == and not just =; also the getline() has already read the line into line; ... namespace std; int main() { string line; ifstream myfile( "example.txt" ); if (myfile) // same as: ...

www.cplusplus.com

網址安全性掃描由 google 提供