1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question

Discussion in 'C' started by smfaizhaider, Jan 22, 2007.

  1. smfaizhaider

    smfaizhaider New Member

    Joined:
    Jan 22, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Suppose i draw a circle in turdo c ,how can i get the hard copy of the drawn circle through programming?
     
  2. Colin Mac

    Colin Mac New Member

    Joined:
    Jan 21, 2007
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    0
    You could do a print screen and paste it into something like MS Word.
     
  3. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    If you want to do it programmatically, you have to send the data to the printer, using its own specific device capabilities. Your OS or a library may provide you with an API function for this, or you might have to roll your own.

    If you don't have a very, very good reason for using Turbo C (such as a requirement from an antiquated school, or a 1980s vintage IBM 286-12), then I suggest that you get a modern compiler. There are many good free compilers available that will meet current language standards to a much greater extent.

    You should also make your subject lines descriptive. This makes the forum searchable for those with similar questions. Almost every post qualifies as "Question" or "Help!!!!". You might want to read the "Before you make a query" thread. Upper right of your screen.
     
    Last edited: Jan 22, 2007
  4. friendsforniraj

    friendsforniraj New Member

    Joined:
    Nov 24, 2006
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    studying
    you can redirect the output to the printer from dos shell
    read about the redirection operator in dos
    run your exe file in dos redirectin the output to the printer
    i hope that works
     
  5. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    Please read the question and refrain from giving bogus information. I/O redirection in the command shell redirects the stdin/out/err streams, which are character streams. They have nothing to do with painting a circle on a hard-copy device.
     
  6. friendsforniraj

    friendsforniraj New Member

    Joined:
    Nov 24, 2006
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    studying
    thank you Dawei
    for tellin me that
     

Share This Page