home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / cplus / 16489 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.6 KB

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