turbo c - C Graphics Programming : Display X/Y Axis -
How to display X and Y axis in Turbo C for graphics programming I mean there is a known code for this Want to display in your program?
You can start by getting acquainted with the available in Turbo C and Turbo C ++. You will want to read what you are trying to accomplish, allowing you to draw text on the screen in a particular place. In C. you can do something like
four lessons [100]; Int xPos = 6; Int yPos = 10; Sprintf (text, "x =% d, y =% d", xps, yPos); Outtextxy (0, 0, text); will display the value of xPos
and yPos
on the top left hand corner of the screen as x = 6, y = 10
.
See examples in the outtextxy
link for full details, which includes header file, start display, and other function calls will come in handy.
Comments
Post a Comment