#include int main () { char s[100]; char c; cout << "Enter a string: "; while (true) { cin.get (s, 100); // cin.get (c); if (cin.eof()) { cout << "end of file" << endl; return 0; }; cout << "You entered:" << s << ":" << endl; cout << "next string: "; } cout << "End of File" << endl; return 0; } /* Enter a string: this is a test You entered:this is a test: next string: You entered:: next string: You entered:: next string: You entered:: .................. interruption -- terminating This does not work on sundog, falun or the MAC What is the problem? cin.get (s,100) has read up to the \n cin.eof() does not succeed, but the \n is not removed. Therefore infinite loop reading the NULL string. */