From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: keyboard input/output in c++ Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <200002231313 DOT OAA03776 AT bird DOT de DOT uu DOT net> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 25 X-Trace: /Kw5eDo9cew/1J6EqEBu53QJUnfxDV2Sa2zXKWgQOIQFO5qsvqsde0x6hX6UFRJA/h09ZnJZYDIy!66/w1+mmKpHYVTVxqFq68YFhb5NQxy38cWQ5fBGfz05dSQLm82bDDbwmXRGKFs2YwJ3w9hhCsMFS!gXesHiM= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Wed, 23 Feb 2000 18:47:40 GMT Distribution: world Date: Wed, 23 Feb 2000 18:47:40 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Wed, 23 Feb 2000 14:11:32 +0100, Jens Luedicke wrote: >if I type in "perl is cool", it >just displays "perl", why? > >[snip] > > cin >> input; cin extraction probably just grabs one word at at time. I don't know that much C++, but look for a cin.getline() or something. The people who know about issues in portable C++ hang out in comp.lang.c++ But don't ask them an OS specific question, or you may get flamed. -- Damian Yerrick http://yerricde.tripod.com/ Comment on story ideas: http://home1.gte.net/frodo/quickjot.html AOL is sucks! Find out why: http://anti-aol.org/faqs/aas/ View full sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your .sig to prevent the spread of .sig viruses. http://www.mcafee.com/