Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!gargoyle!mcdougal From: mcdougal@gargoyle.uchicago.edu (thomas fenger mcdougal) Newsgroups: comp.lang.c++ Subject: GNU C++ cin problem Summary: (fix previous posting) Keywords: GNU C++ Message-ID: <493@gargoyle.uchicago.edu> Date: 17 Oct 89 17:20:16 GMT References: <492@gargoyle.uchicago.edu> Reply-To: mcdougal@gargoyle.uchicago.edu (Tom McDougal) Distribution: na Organization: U. Chicago Computer Science Dept. Lines: 20 (Sorry, I did something wrong and the mailer ate the first part of my message. Here is a reposting:) I have a textbook that says char inbuf[200]; while (cin >> inbuff) { ... }; should read in one word at a time until it gets to the end, at which point it should exit the loop. It reads words okay until it gets to the last word. Instead of halting, it reads that last word over and over and over and ... We are using GNU C++. Advice? Thanks in advance. --Tom (mcdougal@gargoyle.UChicago.edu)