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

  1. Path: sparky!uunet!olivea!hal.com!decwrl!deccrl!news.crl.dec.com!news!nntpd.lkg.dec.com!sieras.enet.dec.com!wallis
  2. From: wallis@sieras.enet.dec.com (Barry L. Wallis)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Stream I/O in Turbo C++
  5. Message-ID: <1992Aug17.231223.2521@nntpd.lkg.dec.com>
  6. Date: 17 Aug 92 21:11:23 GMT
  7. Sender: usenet@nntpd.lkg.dec.com (USENET News System)
  8. Organization: Digital Equipment Corporation
  9. Lines: 24
  10.  
  11.  
  12. In article <1992Aug16.023318.17440@news2.cis.umn.edu>, esper@cs35b.cs.umn.edu (Dave Sherohman) writes...
  13. >OK, another question for you.  (As was guessed after my last one, I'm fairly
  14. >new to C++... BTW, the actual problem with the struc claiming to have been
  15. >redefined was that the .h file it was in was included twice into one .cpp
  16. >file...  Oops...)  I'm playing with mixing windowing and stream I/O, and I
  17. >can't figure out how to get the window to scroll properly.  When I hit the
  18. >bottom of the window, 'cprintf("\r\n");' will send a linefeed and scroll the
  19. >window up one line, but 'cout << "\r\n";' wraps the cursor back to the top
  20. >of the screen instead of scrolling it.  How can I get the scrolling to work
  21. >without resorting to using cprintf?
  22.  
  23. Check out the constream object. It is new to version 3.x and is the stream
  24. equivalent to conio.h. It includes member functions to handle text mode windows
  25. with the stream keeping track of which window you are using. The interface can
  26. be found in <constrea.h>
  27.  
  28. ---
  29. Barry L. Wallis            wallis@sieras.enet.dec.com
  30. Database Consultant        Prodigy (don't laugh): DNMX41A
  31. U.S. Production Systems Resource Center
  32. Los Angeles, CA            "No one voted for me, I represent myself"
  33. ---
  34.