Question

smfaizhaider's Avatar, Join Date: Jan 2007
Newbie Member
Suppose i draw a circle in turdo c ,how can i get the hard copy of the drawn circle through programming?
0
Colin Mac's Avatar, Join Date: Jan 2007
Go4Expert Member
You could do a print screen and paste it into something like MS Word.
0
DaWei's Avatar, Join Date: Dec 2006
Team Leader
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 by DaWei; 22Jan2007 at 19:09..
0
friendsforniraj's Avatar, Join Date: Nov 2006
Go4Expert Member
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
0
DaWei's Avatar, Join Date: Dec 2006
Team Leader
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.
0
friendsforniraj's Avatar, Join Date: Nov 2006
Go4Expert Member
thank you Dawei
for tellin me that