I'm having Windows/linux EOF issues.
Given the snippet:When I build the program on Windows XP (Code::Blocks), I have no problems. I am able to retrieve input from the keyboard after this block.Code:std::string sWord; while (std::cin >> sWord) { //blah blah blah } std::cin.clear();
When I build the program on the school's computers (I'm sorry, I don't know what the OS is, some *NIX...we bypass the Debian login, so I'm not sure.) the cin.clear() doesn't seem to really be resetting the stream, the program shoots through the next input (which is to ask whether to do it all again) and exits.
I've tried cin.ignore(1000,'/n') with the cin.clear(), but to no avail. Maybe I'm just too tired to see an obvious solution, but I need help. Anyone have an idea?