Results 1 to 2 of 2

Thread: capturing all input and output on screen in c++ (console)

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 1999
    Location
    Westfield, IN, USA
    Posts
    59
    I have a program which makes output, and takes input. Basically like a calculator which asks questions...
    I would like to get all of the stuff it prints to the screen, and all the input frmo the user, and print it on a printer. I have got the printer to print, but i'm unsure on how to print it all. Does anyone know a way to do it? I'll attach my source code to this here.
    Attached Files Attached Files

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    To print to a printer on LPT1 you can use:
    Code:
    ofstream ofPrinter("lpt1");
    ...then use the insertion operators as normal.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width