Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!texbell!nuchat!moray!urchin!f713.n106.z1.fidonet.org!Roy.Browning From: Roy.Browning@f713.n106.z1.fidonet.org (Roy Browning) Newsgroups: comp.lang.c++ Subject: Re: Some questions on Zortech C++ Message-ID: <10356.25B48752@urchin.fidonet.org> Date: 17 Jan 90 01:47:40 GMT Sender: ufgate@urchin.fidonet.org (newsout1.26) Organization: FidoNet node 1:106/713 Lines: 31 > From: jeffa@hpmwtd.HP.COM (Jeff Aguilera) > Date: 10 Jan 90 16:01:56 GMT > Organization: HP Microwave Tech. - Santa Rosa, Ca. > Message-ID: <1520012@hpmwjaa.HP.COM> > Newsgroups: comp.lang.c++ > does not completely copy stdin to stdout! (I believe the error was in > streambuf::sgetc peeking at the next character to determine whether to > set _eof.) There are other buffering problems as well. Sigh! Jeff: To enable a program to import more than one string from the console at a time I modifed in the following manner and recompiled the libraries. int sgetc() { return (gptr + 1 < pptr) ..... } The propblem was that sgetc() was continuing to point at the previous input even when called anew. Mail has been slow to arrive, Roy Browning Spring, Texas (FidoNet 1:106/506)