home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!lugb!news
- Newsgroups: comp.lang.c++
- Subject: Can someone please help me with streams?
- Message-ID: <1992Nov18.033505.1617@lugb.latrobe.edu.au>
- From: ECSC9120802J@LUST.LATROBE.EDU.AU (GRANT,David)
- Date: Wed, 18 Nov 1992 03:35:05 GMT
- Sender: news@lugb.latrobe.edu.au (USENET News System)
- Organization: La Trobe University
- X-News-Reader: VMS NEWS 1.24
- Lines: 20
-
-
- I a new programmer to c++, and at the moment I am having trouble with streams.
- I have overloaded the istream operator >>, to read in character by charater and
- copy into an array. (It does a few other things as well.) The trouble I am
- having is that I can't get it to recognise spaces or carrage returns. It just
- seems to ignore them totally. I was wondering how I can get it to recognise
- these characters, as it is inportant to my program.
- Thanks for any help that I recieve, I will be eternally greatful. Also,
- if I have asked a stupid question, or am missing the point somewhere, then
- just tell me! Also I am compiling on my PC using Dos. I don't know if this is a
- factor or not. Thanks again.
-
- David.
-
- ----------------------------------------------------------------------------
- David Grant | "No one would suurender to the
- "The Dread Pirate Roberts" | Dread Pirate Westly"
- ecsc9120802j.lust.latrobe.edu.au | - The Princess Bride.
- or 9120802j.lux.latrobe.edu.au | P.S "La domo estas bela!"
- ----------------------------------------------------------------------------
-