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

How to determine whether it is EOF when using getline() in c++?

string s; getline(cin,s); while (HOW TO WRITE IT HERE?) ... Using "while (!stream. eof()) {}" is almost certainly wrong. Use the stream's state as ...

stackoverflow.com

網址安全性掃描由 google 提供