how i can take the print of out put of C++ prog. in turbo C++4.1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • krishanbaloda
    New Member
    • Oct 2007
    • 2

    how i can take the print of out put of C++ prog. in turbo C++4.1

    i want to know that how i can take the print of a c++ prog. o/p.
  • hariharanmca
    Top Contributor
    • Dec 2006
    • 1977

    #2
    clear your window (before run your program)
    then run your Program

    then use Print screen(it is in Keyboard) to take printout.

    Comment

    • questionit
      Contributor
      • Feb 2007
      • 553

      #3
      Originally posted by krishanbaloda
      i want to know that how i can take the print of a c++ prog. o/p.
      You can do CTRL+Print Screen to capture your output as an image and then you can paste that image into ms-paint or any other application. from there, you can print the image.

      If you want to print something from program itself, use
      fprintf(). For example:
      [code=c]
      fprintf(stdprn, "this is my output:\n", yourVariable)
      [/code]

      Hope it helps
      Qi

      Comment

      • hariharanmca
        Top Contributor
        • Dec 2006
        • 1977

        #4
        Originally posted by questionit
        You can do CTRL+Print Screen .....
        [code=c]
        fprintf(stdprn, "this is my output:\n", yourVariable)
        [/code]

        Hope it helps
        Qi
        Can you explain what is this stdprn in your code?

        Comment

        • questionit
          Contributor
          • Feb 2007
          • 553

          #5
          Originally posted by hariharanmca
          Can you explain what is this stdprn in your code?
          stdprn is a printer stream. Like we have other different streams such as:

          FILE
          stderr
          stdout
          etc

          stdprn is a standard printer stream in C.

          Regards
          Qi
          Last edited by questionit; Oct 3 '07, 01:55 PM. Reason: spelling

          Comment

          Working...